3v4l.org

run code in 300+ PHP versions simultaneously
<?php $form = array ( '#method' => 'POST', 'refsaving' => array ( '#type' => 'textfield', '#title' => 'Ref.', '#size' => 30, '#maxlength' => 128, '#required' => true, '#attributes' => array ( 'placeholder' => 'Reference #', 'required' => '', ), '#input' => true, '#autocomplete_path' => false, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'textfield', '#theme_wrappers' => array ( 0 => 'form_element', ), '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'refsaving', ), '#array_parents' => array ( 0 => 'refsaving', ), '#weight' => 0, '#processed' => true, '#title_display' => 'before', '#id' => 'edit-refsaving', '#name' => 'refsaving', '#value' => 'REF123', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'initamount' => array ( '#type' => 'textfield', '#title' => 'Initial Amount', '#size' => 10, '#maxlength' => 12, '#required' => true, '#prefix' => '<div class="chf">', '#suffix' => '</div>', '#attributes' => array ( 'placeholder' => 'Initial amount in CHF', 'required' => '', 'type' => 'numeric', ), '#input' => true, '#autocomplete_path' => false, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'textfield', '#theme_wrappers' => array ( 0 => 'form_element', ), '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'initamount', ), '#array_parents' => array ( 0 => 'initamount', ), '#weight' => 0.001000000000000000020816681711721685132943093776702880859375, '#processed' => true, '#title_display' => 'before', '#id' => 'edit-initamount', '#name' => 'initamount', '#value' => '100', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'netsaving' => array ( '#type' => 'textfield', '#title' => 'Net Saving', '#size' => 10, '#maxlength' => 12, '#required' => true, '#prefix' => '<div class="chf">', '#suffix' => '</div>', '#attributes' => array ( 'placeholder' => 'Net saving in CHF', 'required' => '', 'type' => 'numeric', ), '#input' => true, '#autocomplete_path' => false, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'textfield', '#theme_wrappers' => array ( 0 => 'form_element', ), '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'netsaving', ), '#array_parents' => array ( 0 => 'netsaving', ), '#weight' => 0.00200000000000000004163336342344337026588618755340576171875, '#processed' => true, '#title_display' => 'before', '#id' => 'edit-netsaving', '#name' => 'netsaving', '#value' => '20', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'supplier' => array ( '#type' => 'textfield', '#title' => 'Supplier', '#size' => 40, '#maxlength' => 128, '#required' => true, '#attributes' => array ( 'placeholder' => 'Name of the supplier', ), '#input' => true, '#autocomplete_path' => false, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'textfield', '#theme_wrappers' => array ( 0 => 'form_element', ), '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'supplier', ), '#array_parents' => array ( 0 => 'supplier', ), '#weight' => 0.003000000000000000062450045135165055398829281330108642578125, '#processed' => true, '#title_display' => 'before', '#id' => 'edit-supplier', '#name' => 'supplier', '#value' => 'Le supplier', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'comments' => array ( '#type' => 'textarea', '#title' => 'Comments', '#rows' => 3, '#cols' => 86, '#default_value' => '', '#attributes' => array ( 'placeholder' => 'Comments about the saving', ), '#maxlength' => 256, '#input' => true, '#resizable' => true, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'textarea', '#theme_wrappers' => array ( 0 => 'form_element', ), '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'comments', ), '#array_parents' => array ( 0 => 'comments', ), '#weight' => 0.0040000000000000000832667268468867405317723751068115234375, '#processed' => true, '#required' => false, '#title_display' => 'before', '#id' => 'edit-comments', '#name' => 'comments', '#value' => 'sgda', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'estimated' => array ( '#type' => 'radios', '#title' => 'Estimated?', '#default_value' => 'N', '#options' => array ( 'Y' => 'Yes', 'N' => 'No', ), '#description' => 'Choose \'Yes\' if the amount introduced is an estimated amount.', '#input' => true, '#process' => array ( 0 => 'form_process_radios', ), '#theme_wrappers' => array ( 0 => 'radios', ), '#pre_render' => array ( 0 => 'form_pre_render_conditional_form_element', 1 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'estimated', ), '#array_parents' => array ( 0 => 'estimated', ), '#weight' => 0.005000000000000000104083408558608425664715468883514404296875, '#processed' => true, '#required' => false, '#attributes' => array ( ), '#title_display' => 'before', '#id' => 'edit-estimated', '#name' => 'estimated', '#value' => 'Y', '#needs_validation' => true, 'Y' => array ( '#type' => 'radio', '#title' => 'Yes', '#return_value' => 'Y', '#default_value' => 'N', '#attributes' => array ( ), '#parents' => array ( 0 => 'estimated', ), '#id' => 'edit-estimated-y', '#ajax' => NULL, '#weight' => 0.001000000000000000020816681711721685132943093776702880859375, '#input' => true, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'radio', '#theme_wrappers' => array ( 0 => 'form_element', ), '#title_display' => 'after', '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#array_parents' => array ( 0 => 'estimated', 1 => 'Y', ), '#processed' => true, '#required' => false, '#name' => 'estimated', '#value' => 'Y', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'N' => array ( '#type' => 'radio', '#title' => 'No', '#return_value' => 'N', '#default_value' => 'N', '#attributes' => array ( ), '#parents' => array ( 0 => 'estimated', ), '#id' => 'edit-estimated-n', '#ajax' => NULL, '#weight' => 0.00200000000000000004163336342344337026588618755340576171875, '#input' => true, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'radio', '#theme_wrappers' => array ( 0 => 'form_element', ), '#title_display' => 'after', '#pre_render' => array ( 0 => 'ctools_dependent_pre_render', ), '#defaults_loaded' => true, '#tree' => false, '#array_parents' => array ( 0 => 'estimated', 1 => 'N', ), '#processed' => true, '#required' => false, '#name' => 'estimated', '#value' => 'Y', '#needs_validation' => true, '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), '#validated' => true, ), 'created' => array ( '#type' => 'hidden', '#value' => 'oscar', '#input' => true, '#process' => array ( 0 => 'ajax_process_form', ), '#theme' => 'hidden', '#defaults_loaded' => true, '#tree' => false, '#parents' => array ( 0 => 'created', ), '#array_parents' => array ( 0 => 'created', ), '#weight' => 0.00600000000000000012490009027033011079765856266021728515625, '#processed' => true, '#required' => false, '#attributes' => array ( ), '#title_display' => 'before', '#id' => 'edit-created', '#name' => 'created', '#ajax_processed' => false, '#sorted' => true, '#validated' => true, ), 'actions' => array ( '#type' => 'actions', 'submit' => array ( '#type' => 'submit', '#value' => 'Insert', '#submit' => array ( 0 => 'fp_savings_insert_saving_form_submit', ), '#input' => true, '#name' => 'op', ))); $obj = (object) array_keys($form); print_r(get_object_vars($obj));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00718.30
8.3.50.0130.00622.06
8.3.40.0070.00718.59
8.3.30.0180.00019.14
8.3.20.0000.00720.34
8.3.10.0030.00620.44
8.3.00.0030.00619.25
8.2.180.0100.00718.28
8.2.170.0030.01022.96
8.2.160.0080.00520.52
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0000.00822.06
8.2.110.0090.00021.06
8.2.100.0060.00617.72
8.2.90.0000.00817.98
8.2.80.0040.00417.97
8.2.70.0000.00917.50
8.2.60.0040.00717.68
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0050.00319.23
8.2.20.0040.00417.75
8.2.10.0040.00418.18
8.2.00.0040.00417.74
8.1.280.0070.01125.92
8.1.270.0080.00023.70
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00523.83
8.1.230.0100.00020.90
8.1.220.0000.00817.74
8.1.210.0000.00818.87
8.1.200.0030.00717.23
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0070.00318.47
8.1.160.0040.00421.88
8.1.150.0030.00518.84
8.1.140.0040.00417.36
8.1.130.0000.00717.80
8.1.120.0040.00417.31
8.1.110.0040.00417.45
8.1.100.0040.00417.38
8.1.90.0050.00517.45
8.1.80.0080.00017.52
8.1.70.0040.00417.40
8.1.60.0030.00517.63
8.1.50.0030.00617.56
8.1.40.0040.00417.56
8.1.30.0000.00917.63
8.1.20.0030.00617.75
8.1.10.0000.00817.54
8.1.00.0030.00717.47
8.0.300.0000.00820.21
8.0.290.0070.00016.88
8.0.280.0070.00018.44
8.0.270.0040.00417.30
8.0.260.0070.00017.23
8.0.250.0030.00417.02
8.0.240.0040.00416.84
8.0.230.0030.00316.84
8.0.220.0000.00716.86
8.0.210.0030.00516.76
8.0.200.0040.00416.94
8.0.190.0080.00016.92
8.0.180.0040.00416.77
8.0.170.0040.00416.93
8.0.160.0040.00416.91
8.0.150.0000.00716.80
8.0.140.0000.00816.87
8.0.130.0000.00613.26
8.0.120.0030.00616.82
8.0.110.0030.00616.91
8.0.100.0040.00416.83
8.0.90.0000.00816.77
8.0.80.0030.01216.81
8.0.70.0000.00816.71
8.0.60.0000.00816.95
8.0.50.0050.00316.66
8.0.30.0080.01017.22
8.0.20.0080.01017.40
8.0.10.0000.00816.95
8.0.00.0090.00916.77
7.4.330.0030.00315.00
7.4.320.0000.00616.70
7.4.300.0060.00016.70
7.4.290.0030.00316.65
7.4.280.0000.00716.55
7.4.270.0040.00416.61
7.4.260.0030.00316.62
7.4.250.0040.00416.52
7.4.240.0000.00716.44
7.4.230.0030.00616.65
7.4.220.0030.01616.67
7.4.210.0110.00416.66
7.4.200.0080.00016.54
7.4.160.0040.01216.75
7.4.150.0070.01117.40
7.4.140.0040.01317.86
7.4.130.0110.01116.45
7.4.120.0080.00916.56
7.4.110.0070.01016.41
7.4.100.0100.00616.43
7.4.90.0070.01016.60
7.4.80.0070.01019.37
7.4.70.0180.00016.48
7.4.60.0070.01016.51
7.4.50.0000.00816.32
7.4.40.0050.01716.58
7.4.30.0140.00916.39
7.4.10.0110.00715.11
7.4.00.0090.00715.04
7.3.330.0000.00513.04
7.3.320.0030.00313.19
7.3.310.0000.00716.18
7.3.300.0030.00316.14
7.3.290.0090.00616.27
7.3.280.0130.00516.25
7.3.270.0100.00917.40
7.3.260.0040.02116.51
7.3.250.0090.01116.33
7.3.240.0060.01016.50
7.3.230.0090.00616.44
7.3.210.0130.00316.18
7.3.200.0070.01019.39
7.3.190.0090.00816.65
7.3.180.0120.00416.59
7.3.170.0070.01016.50
7.3.160.0120.00616.18
7.3.130.0070.01114.88
7.3.120.0070.00914.77
7.3.110.0090.00714.88
7.3.100.0100.00214.59
7.3.90.0050.00914.92
7.3.80.0030.00814.94
7.3.70.0010.01214.82
7.3.60.0050.00814.68
7.3.50.0050.01014.76
7.3.40.0030.01314.67
7.3.30.0100.00514.75
7.3.20.0050.00816.46
7.3.10.0070.00716.60
7.3.00.0070.00616.67
7.2.330.0170.00016.68
7.2.320.0110.00716.55
7.2.310.0070.01116.61
7.2.300.0120.00616.39
7.2.290.0080.00816.28
7.2.260.0070.00714.89
7.2.250.0060.00915.00
7.2.240.0030.01214.73
7.2.230.0060.00814.94
7.2.220.0050.01015.06
7.2.210.0060.00714.89
7.2.200.0050.01014.99
7.2.190.0030.00815.02
7.2.180.0020.01414.89
7.2.170.0090.00714.98
7.2.160.0060.00714.97
7.2.150.0060.00816.84
7.2.140.0080.00516.96
7.2.130.0040.00816.78
7.2.120.0110.00416.59
7.2.110.0050.01016.75
7.2.100.0040.00916.79
7.2.90.0050.01016.64
7.2.80.0060.00516.82
7.2.70.0090.00316.92
7.2.60.0080.00616.63
7.2.50.0040.00916.67
7.2.40.0060.00616.58
7.2.30.0070.00716.65
7.2.20.0030.00916.58
7.2.10.0050.01116.61
7.2.00.0050.00817.48
7.1.330.0050.00815.78
7.1.320.0070.00715.76
7.1.310.0020.01415.70
7.1.300.0040.01115.48
7.1.290.0090.00515.66
7.1.280.0140.00215.54
7.1.270.0070.00715.69
7.1.260.0060.00615.81
7.1.250.0060.00615.64
7.1.240.0040.01015.62
7.1.230.0020.00915.83
7.1.220.0080.00615.72
7.1.210.0090.00615.82
7.1.200.0090.00415.64
7.1.190.0020.01115.71
7.1.180.0080.00615.74
7.1.170.0030.00915.67
7.1.160.0050.00915.65
7.1.150.0050.00515.75
7.1.140.0040.01015.58
7.1.130.0060.00415.79
7.1.120.0050.00515.86
7.1.110.0050.00715.77
7.1.100.0070.00716.46
7.1.90.0070.00515.63
7.1.80.0050.01115.71
7.1.70.0070.00316.11
7.1.60.0090.00916.80
7.1.50.0050.00915.99
7.1.40.0020.01215.80
7.1.30.0080.00515.58
7.1.20.0090.00315.72
7.1.10.0050.01015.77
7.1.00.0040.03017.85
7.0.330.0060.00615.25
7.0.320.0050.01015.27
7.0.310.0020.01315.35
7.0.300.0040.00715.35
7.0.290.0040.00815.16
7.0.280.0070.00215.45
7.0.270.0040.01115.17
7.0.260.0070.00515.36
7.0.250.0050.00915.43
7.0.240.0050.00815.29
7.0.230.0030.01015.36
7.0.220.0060.01015.37
7.0.210.0030.00815.35
7.0.200.0050.00715.82
7.0.190.0050.00715.32
7.0.180.0070.00415.19
7.0.170.0040.00815.35
7.0.160.0060.00515.32
7.0.150.0040.00715.48
7.0.140.0030.03017.55
7.0.130.0080.00515.35
7.0.120.0050.00815.19
7.0.110.0090.00415.32
7.0.100.0060.00515.17
7.0.90.0050.00715.35
7.0.80.0030.01015.21
7.0.70.0060.00615.28
7.0.60.0080.03216.91
7.0.50.0080.02316.17
7.0.40.0030.03515.57
7.0.30.0100.03915.79
7.0.20.0150.02815.73
7.0.10.0050.02715.63
7.0.00.0100.03215.72
5.6.400.0000.01014.35
5.6.390.0030.01014.20
5.6.380.0050.00514.57
5.6.370.0070.00714.25
5.6.360.0010.00814.14
5.6.350.0040.00714.37
5.6.340.0030.00914.38
5.6.330.0100.00514.46
5.6.320.0050.01014.35
5.6.310.0060.00614.42
5.6.300.0070.00814.44
5.6.290.0010.01014.49
5.6.280.0060.02616.41
5.6.270.0020.00814.20
5.6.260.0060.00614.41
5.6.250.0020.01014.17
5.6.240.0050.00714.28
5.6.230.0070.00814.23
5.6.220.0080.00814.34
5.6.210.0050.02816.46
5.6.200.0080.03015.51
5.6.190.0070.03316.39
5.6.180.0160.03116.28
5.6.170.0110.02616.39
5.6.160.0060.03216.30
5.6.150.0060.03315.63
5.6.140.0090.02815.65
5.6.130.0070.01915.68
5.6.120.0050.02416.72
5.6.110.0060.03416.62
5.6.100.0060.02016.47
5.6.90.0070.02016.53
5.6.80.0070.02116.36
5.6.70.0030.01014.34
5.6.60.0100.00314.14
5.6.50.0050.01014.15
5.6.40.0040.00714.11
5.6.30.0100.00514.28
5.6.20.0030.00814.23
5.6.10.0060.00714.10
5.6.00.0030.01114.24
5.5.380.0060.00512.63
5.5.370.0040.00812.57
5.5.360.0030.00512.46
5.5.350.0120.02915.04
5.5.340.0070.02014.43
5.5.330.0060.02815.22
5.5.320.0120.03115.26
5.5.310.0090.02415.22
5.5.300.0040.02314.32
5.5.290.0030.03114.33
5.5.280.0060.01815.44
5.5.270.0090.02915.46
5.5.260.0070.03115.39
5.5.250.0040.03515.31
5.5.240.0040.03015.06
5.5.230.0030.00912.59
5.5.220.0030.00512.42
5.5.210.0010.00912.59
5.5.200.0060.00412.66
5.5.190.0020.01112.56
5.5.180.0060.00512.63
5.5.170.0090.00312.68
5.5.160.0070.00512.60
5.5.150.0050.00212.57
5.5.140.0070.00612.58
5.5.130.0050.00612.51
5.5.120.0020.01112.59
5.5.110.0030.00812.59
5.5.100.0000.00912.61
5.5.90.0050.00612.68
5.5.80.0040.00812.33
5.5.70.0020.01212.69
5.5.60.0050.00612.57
5.5.50.0020.00912.57
5.5.40.0020.01212.62
5.5.30.0050.00512.61
5.5.20.0020.01112.64
5.5.10.0020.00912.64
5.5.00.0020.00812.51
5.4.450.0220.02313.97
5.4.440.0200.02814.02
5.4.430.0340.02914.07
5.4.420.0220.03013.97
5.4.410.0150.02213.91
5.4.400.0240.02613.88
5.4.390.0270.02813.75
5.4.380.0140.02413.73
5.4.370.0080.02513.69
5.4.360.0120.02313.75
5.4.350.0110.02213.67
5.4.340.0100.02413.67
5.4.330.0030.00811.15
5.4.320.0050.01511.68
5.4.310.0040.01611.73
5.4.300.0070.01411.73
5.4.290.0030.01611.67
5.4.280.0040.01511.73
5.4.270.0040.01811.64
5.4.260.0020.02011.67
5.4.250.0040.01911.57
5.4.240.0060.01811.63
5.4.230.0050.01711.65
5.4.220.0050.01611.70
5.4.210.0010.01911.68
5.4.200.0030.01611.63
5.4.190.0070.01611.64
5.4.180.0060.01611.66
5.4.170.0050.01511.60
5.4.160.0050.01511.69
5.4.150.0080.01411.58
5.4.140.0060.01811.52
5.4.130.0030.01711.62
5.4.120.0060.01911.47
5.4.110.0060.01511.52
5.4.100.0020.01711.53
5.4.90.0050.01611.52
5.4.80.0020.01911.49
5.4.70.0040.01411.47
5.4.60.0030.02211.57
5.4.50.0030.02111.51
5.4.40.0040.01711.52
5.4.30.0070.01711.55
5.4.20.0070.01411.53
5.4.10.0040.01711.56
5.4.00.0060.01511.40
5.3.290.0050.02611.73
5.3.280.0060.02511.59
5.3.270.0090.02511.65
5.3.260.0050.02511.71
5.3.250.0070.02111.63
5.3.240.0060.01911.46
5.3.230.0070.02211.60
5.3.220.0060.03011.66
5.3.210.0070.02911.58
5.3.200.0040.02311.59
5.3.190.0040.03311.66
5.3.180.0070.02011.70
5.3.170.0040.02211.62
5.3.160.0030.02211.68
5.3.150.0060.02411.60
5.3.140.0020.02311.63
5.3.130.0090.02511.61
5.3.120.0080.02011.66
5.3.110.0060.02111.62
5.3.100.0040.02111.35
5.3.90.0050.02111.32
5.3.80.0050.02111.30
5.3.70.0060.01911.36
5.3.60.0040.02111.41
5.3.50.0050.02111.20
5.3.40.0060.02311.27
5.3.30.0050.01911.22
5.3.20.0040.02311.16
5.3.10.0060.01911.10
5.3.00.0070.02211.05
5.2.170.0050.0219.62
5.2.160.0010.0219.62
5.2.150.0060.0189.62
5.2.140.0010.0209.62
5.2.130.0020.0189.60
5.2.120.0020.0199.60
5.2.110.0030.0179.61
5.2.100.0060.0169.60
5.2.90.0040.0159.61
5.2.80.0050.0229.60
5.2.70.0060.0189.60
5.2.60.0070.0199.58
5.2.50.0050.0189.56
5.2.40.0050.0179.55
5.2.30.0020.0199.54
5.2.20.0030.0169.53
5.2.10.0040.0209.49
5.2.00.0020.0199.42
5.1.60.0030.0149.07
5.1.50.0010.0169.07
5.1.40.0030.0159.06
5.1.30.0040.0179.24
5.1.20.0020.0169.25
5.1.10.0040.0149.12
5.1.00.0050.0229.12
5.0.50.0040.0108.36
5.0.40.0060.0108.29
5.0.30.0060.0168.19
5.0.20.0020.0138.19
5.0.10.0050.0188.18
5.0.00.0030.0188.18
4.4.90.0020.0117.37
4.4.80.0040.0107.36
4.4.70.0030.0127.36
4.4.60.0030.0097.36
4.4.50.0040.0117.36
4.4.40.0020.0157.36
4.4.30.0040.0137.36
4.4.20.0020.0147.40
4.4.10.0020.0117.40
4.4.00.0010.0167.37
4.3.110.0020.0107.33
4.3.100.0010.0107.32
4.3.90.0020.0107.32
4.3.80.0010.0167.33
4.3.70.0020.0097.32
4.3.60.0060.0097.32
4.3.50.0040.0087.32
4.3.40.0020.0207.30
4.3.30.0040.0076.71
4.3.20.0010.0156.69
4.3.10.0010.0106.67
4.3.00.0080.0168.50

preferences:
54.45 ms | 400 KiB | 5 Q