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) $form; print_r(array_keys($form)); echo 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.0120.00318.43
8.3.50.0100.01321.93
8.3.40.0130.00318.84
8.3.30.0000.01818.84
8.3.20.0040.00420.21
8.3.10.0000.00820.36
8.3.00.0050.00319.25
8.2.180.0140.00316.63
8.2.170.0090.00622.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0000.00822.02
8.2.110.0090.00020.35
8.2.100.0060.00618.03
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0110.00017.92
8.2.50.0040.00418.07
8.2.40.0050.00318.34
8.2.30.0050.00219.23
8.2.20.0050.00317.73
8.2.10.0030.00718.18
8.2.00.0040.00417.72
8.1.280.0120.00625.92
8.1.270.0080.00023.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.88
8.1.230.0060.00619.01
8.1.220.0080.00017.77
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0030.00718.51
8.1.160.0040.00421.96
8.1.150.0050.00318.91
8.1.140.0040.00417.43
8.1.130.0000.00717.81
8.1.120.0050.00217.44
8.1.110.0040.00417.45
8.1.100.0040.00417.50
8.1.90.0030.00717.44
8.1.80.0000.00817.37
8.1.70.0040.00417.48
8.1.60.0030.00517.55
8.1.50.0030.00617.60
8.1.40.0030.00617.60
8.1.30.0080.00017.55
8.1.20.0000.00817.57
8.1.10.0080.00017.44
8.1.00.0030.00617.50
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0030.00318.50
8.0.270.0040.00416.89
8.0.260.0030.00517.24
8.0.250.0000.00717.06
8.0.240.0030.00517.09
8.0.230.0000.00716.92
8.0.220.0000.00716.93
8.0.210.0040.00316.96
8.0.200.0050.00317.05
8.0.190.0080.00017.04
8.0.180.0030.00516.99
8.0.170.0000.00817.03
8.0.160.0040.00416.83
8.0.150.0040.00416.89
8.0.140.0000.00816.91
8.0.130.0000.00513.43
8.0.120.0030.00616.89
8.0.110.0040.00416.86
8.0.100.0040.00416.80
8.0.90.0040.00416.84
8.0.80.0110.00616.82
8.0.70.0060.00317.06
8.0.60.0050.00217.04
8.0.50.0000.00716.90
8.0.30.0060.01317.27
8.0.20.0050.01617.40
8.0.10.0030.00517.02
8.0.00.0090.01116.79
7.4.330.0050.00015.06
7.4.320.0040.00416.55
7.4.300.0030.00316.57
7.4.290.0000.00716.62
7.4.280.0040.00416.57
7.4.270.0000.00716.66
7.4.260.0030.00716.54
7.4.250.0000.00716.58
7.4.240.0020.00516.61
7.4.230.0040.00416.55
7.4.220.0090.00916.66
7.4.210.0040.01116.59
7.4.200.0040.00416.45
7.4.160.0050.01116.67
7.4.150.0150.00417.40
7.4.140.0090.00817.86
7.4.130.0110.00716.58
7.4.120.0100.00816.72
7.4.110.0060.01216.75
7.4.100.0080.00916.62
7.4.90.0120.00616.39
7.4.80.0130.00319.37
7.4.70.0120.00616.65
7.4.60.0130.00316.51
7.4.50.0000.00816.50
7.4.40.0120.00616.66
7.4.30.0130.00916.46
7.4.10.0060.00915.09
7.4.00.0060.01015.13
7.3.330.0020.00213.19
7.3.320.0000.00513.07
7.3.310.0030.00316.34
7.3.300.0030.00316.30
7.3.290.0110.01116.33
7.3.280.0060.01116.36
7.3.270.0120.00917.40
7.3.260.0080.01016.41
7.3.250.0070.01216.40
7.3.240.0060.00916.36
7.3.230.0030.01316.39
7.3.210.0070.01016.52
7.3.200.0070.01119.39
7.3.190.0030.01916.36
7.3.180.0000.01516.27
7.3.170.0110.01116.38
7.3.160.0090.01316.35
7.3.130.0140.00314.84
7.3.120.0080.00814.93
7.3.110.0040.01114.89
7.3.100.0070.00414.70
7.3.90.0030.00814.53
7.3.80.0080.00514.70
7.3.70.0060.00814.79
7.3.60.0030.01214.82
7.3.50.0070.00714.73
7.3.40.0060.00614.70
7.3.30.0070.00714.79
7.3.20.0040.00916.52
7.3.10.0080.00516.71
7.3.00.0060.00516.62
7.2.330.0280.01316.34
7.2.320.0000.01616.32
7.2.310.0140.00416.65
7.2.300.0030.01316.45
7.2.290.0120.00316.56
7.2.260.0100.00715.25
7.2.250.0070.01314.77
7.2.240.0020.01214.89
7.2.230.0080.00815.04
7.2.220.0020.01414.91
7.2.210.0050.01114.87
7.2.200.0030.01215.00
7.2.190.0060.01015.01
7.2.180.0050.00814.86
7.2.170.0040.00815.04
7.2.160.0060.00915.03
7.2.150.0090.00516.66
7.2.140.0110.00416.85
7.2.130.0050.01016.82
7.2.120.0050.01116.89
7.2.110.0030.01216.64
7.2.100.0030.00816.82
7.2.90.0030.01116.77
7.2.80.0080.00716.72
7.2.70.0090.00516.78
7.2.60.0080.00716.81
7.2.50.0030.01216.66
7.2.40.0040.01016.82
7.2.30.0020.01216.86
7.2.20.0050.00716.78
7.2.10.0060.00916.79
7.2.00.0080.00417.60
7.1.330.0020.01115.84
7.1.320.0050.00615.89
7.1.310.0060.01015.83
7.1.300.0040.00715.48
7.1.290.0070.00615.73
7.1.280.0080.00415.79
7.1.270.0100.00315.78
7.1.260.0060.00715.64
7.1.250.0070.00415.77
7.1.240.0000.01415.92
7.1.230.0030.00915.83
7.1.220.0000.01015.55
7.1.210.0000.00815.50
7.1.200.0090.00715.76
7.1.190.0080.00415.66
7.1.180.0060.00615.65
7.1.170.0000.00815.40
7.1.160.0040.00715.80
7.1.150.0030.01115.73
7.1.140.0030.00715.74
7.1.130.0060.00315.60
7.1.120.0000.01515.54
7.1.110.0080.00015.69
7.1.100.0000.01016.98
7.1.90.0030.01015.50
7.1.80.0040.01115.63
7.1.70.0040.00816.38
7.1.60.0110.00617.55
7.1.50.0060.00616.27
7.1.40.0070.01015.81
7.1.30.0070.00715.79
7.1.20.0090.00615.79
7.1.10.0000.01115.84
7.1.00.0060.04319.11
7.0.330.0070.00715.60
7.0.320.0040.00715.29
7.0.310.0060.00915.57
7.0.300.0030.00715.27
7.0.290.0060.00615.56
7.0.280.0040.00415.16
7.0.270.0070.00415.49
7.0.260.0000.01615.18
7.0.250.0100.00315.38
7.0.240.0080.00415.32
7.0.230.0100.00715.38
7.0.220.0030.00915.20
7.0.210.0040.01115.35
7.0.200.0040.01016.10
7.0.190.0030.01015.36
7.0.180.0070.00715.17
7.0.170.0070.00715.26
7.0.160.0060.01015.22
7.0.150.0030.01015.49
7.0.140.0060.04318.72
7.0.130.0060.00915.29
7.0.120.0070.00715.52
7.0.110.0090.00615.46
7.0.100.0030.00815.43
7.0.90.0030.01315.43
7.0.80.0050.00315.34
7.0.70.0070.00715.22
7.0.60.0030.04717.62
7.0.50.0050.02516.68
7.0.40.0100.04416.62
7.0.30.0180.02616.66
7.0.20.0150.04516.91
7.0.10.0070.04416.93
7.0.00.0030.02916.82
5.6.400.0060.00914.67
5.6.390.0040.01114.48
5.6.380.0030.00914.81
5.6.370.0090.00614.05
5.6.360.0110.00414.71
5.6.350.0090.00614.35
5.6.340.0060.00914.59
5.6.330.0000.01214.65
5.6.320.0000.00914.59
5.6.310.0110.00314.67
5.6.300.0100.00714.18
5.6.290.0070.01114.75
5.6.280.0020.04417.86
5.6.270.0060.00914.59
5.6.260.0060.01214.34
5.6.250.0080.00514.11
5.6.240.0040.00714.47
5.6.230.0100.00314.43
5.6.220.0090.00614.27
5.6.210.0080.02917.54
5.6.200.0050.02516.41
5.6.190.0080.02517.51
5.6.180.0320.03217.48
5.6.170.0280.03417.32
5.6.160.0030.02717.44
5.6.150.0050.03216.22
5.6.140.0080.01816.21
5.6.130.0120.04216.39
5.6.120.0050.04317.71
5.6.110.0070.04417.77
5.6.100.0030.03717.78
5.6.90.0080.04317.52
5.6.80.0070.04317.40
5.6.70.0110.00014.11
5.6.60.0080.00614.28
5.6.50.0060.00614.30
5.6.40.0000.01114.28
5.6.30.0060.00614.11
5.6.20.0030.01014.34
5.6.10.0070.00414.54
5.6.00.0030.01014.17
5.5.380.0030.00914.18
5.5.370.0150.00014.21
5.5.360.0150.00014.66
5.5.350.0120.03717.34
5.5.340.0070.02316.23
5.5.330.0060.02617.13
5.5.320.0220.04217.20
5.5.310.0110.02117.41
5.5.300.0080.02216.25
5.5.290.0020.02916.12
5.5.280.0070.04117.67
5.5.270.0110.04117.57
5.5.260.0090.02917.54
5.5.250.0060.02817.54
5.5.240.1220.02317.35
5.5.230.0070.00714.25
5.5.220.0070.00714.09
5.5.210.0070.00714.41
5.5.200.0120.00414.02
5.5.190.0060.00614.60
5.5.180.0060.00314.38
5.5.170.0030.01314.08
5.5.160.0040.01114.28
5.5.150.0060.00614.05
5.5.140.0060.00914.18
5.5.130.0030.01214.07
5.5.120.0030.01214.27
5.5.110.0000.02014.40
5.5.100.0040.00814.04
5.5.90.0100.00314.32
5.5.80.0070.00714.30
5.5.70.0000.01814.10
5.5.60.0070.01014.19
5.5.50.0060.01214.56
5.5.40.0030.00914.33
5.5.30.0060.00714.48
5.5.20.0060.00314.39
5.5.10.0070.00714.33
5.5.00.0060.00814.45
5.4.450.0280.03115.86
5.4.440.0170.02815.91
5.4.430.0070.03515.93
5.4.420.0350.00215.90
5.4.410.0370.00015.82
5.4.400.0350.00215.71
5.4.390.0330.00115.65
5.4.380.0140.03415.53
5.4.370.0100.03515.44
5.4.360.0180.03115.55
5.4.350.0180.03915.53
5.4.340.0200.03015.45
5.4.330.0030.00512.24
5.4.320.0030.02212.43
5.4.310.0020.02312.43
5.4.300.0060.02812.43
5.4.290.0050.02212.43
5.4.280.0050.02112.37
5.4.270.0080.02112.38
5.4.260.0060.02012.37
5.4.250.0040.02412.37
5.4.240.0050.02012.37
5.4.230.0080.02112.37
5.4.220.0080.02112.37
5.4.210.0050.02212.37
5.4.200.0090.02412.37
5.4.190.0040.02312.37
5.4.180.0070.01812.37
5.4.170.0060.02212.37
5.4.160.0060.02212.37
5.4.150.0050.02412.37
5.4.140.0060.02112.21
5.4.130.0030.02412.20
5.4.120.0090.02012.18
5.4.110.0050.02112.18
5.4.100.0050.01912.18
5.4.90.0040.02112.18
5.4.80.0020.02612.18
5.4.70.0060.01912.18
5.4.60.0060.01912.18
5.4.50.0020.02412.18
5.4.40.0060.02312.17
5.4.30.0040.02312.17
5.4.20.0060.02212.17
5.4.10.0080.01812.17
5.4.00.0060.02011.92
5.3.290.0120.03812.84
5.3.280.0060.03812.77
5.3.270.0070.04212.78
5.3.260.0070.03912.78
5.3.250.0070.04012.78
5.3.240.0070.03812.78
5.3.230.0070.03712.77
5.3.220.0080.03612.74
5.3.210.0080.03812.74
5.3.200.0050.03712.74
5.3.190.0060.03712.74
5.3.180.0040.03812.74
5.3.170.0080.03512.74
5.3.160.0100.03212.74
5.3.150.0100.03612.74
5.3.140.0070.03512.73
5.3.130.0080.03912.72
5.3.120.0090.04712.72
5.3.110.0080.03712.72
5.3.100.0050.03812.21
5.3.90.0040.03712.19
5.3.80.0080.03412.18
5.3.70.0050.03812.18
5.3.60.0070.03512.17
5.3.50.0040.03912.11
5.3.40.0060.03812.11
5.3.30.0080.03312.07
5.3.20.0080.03611.86
5.3.10.0120.04111.82
5.3.00.0060.04311.80
5.2.170.0050.0309.32
5.2.160.0080.0269.31
5.2.150.0100.0259.32
5.2.140.0020.0339.31
5.2.130.0050.0319.27
5.2.120.0040.0299.27
5.2.110.0050.0349.28
5.2.100.0060.0289.28
5.2.90.0080.0279.28
5.2.80.0040.0359.27
5.2.70.0070.0409.27
5.2.60.0080.0389.22
5.2.50.0110.0309.20
5.2.40.0060.0319.17
5.2.30.0050.0329.14
5.2.20.0050.0289.14
5.2.10.0070.0279.05
5.2.00.0060.0288.91
5.1.60.0050.0278.19
5.1.50.0060.0258.18
5.1.40.0100.0218.17
5.1.30.0050.0298.52
5.1.20.0070.0278.55
5.1.10.0050.0318.28
5.1.00.0040.0278.28
5.0.50.0030.0216.76
5.0.40.0030.0226.62
5.0.30.0010.0346.43
5.0.20.0020.0216.42
5.0.10.0010.0226.40
5.0.00.0030.0346.40
4.4.90.0000.0194.79
4.4.80.0030.0214.77
4.4.70.0050.0134.76
4.4.60.0040.0144.76
4.4.50.0020.0184.77
4.4.40.0030.0254.75
4.4.30.0030.0164.76
4.4.20.0050.0144.84
4.4.10.0020.0194.85
4.4.00.0020.0284.79
4.3.110.0040.0164.70
4.3.100.0040.0174.68
4.3.90.0020.0164.69
4.3.80.0030.0254.70
4.3.70.0020.0174.69
4.3.60.0030.0154.70
4.3.50.0040.0144.69
4.3.40.0030.0244.64
4.3.30.0020.0193.45
4.3.20.0010.0173.43
4.3.10.0020.0163.38
4.3.00.0070.0137.43

preferences:
48.39 ms | 401 KiB | 5 Q