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', ))); print_r(array_keys($form));

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.70.0060.00918.38
8.3.60.0070.01118.30
8.3.50.0050.01322.03
8.3.40.0140.00718.57
8.3.30.0150.00619.04
8.3.20.0040.00420.21
8.3.10.0030.00520.59
8.3.00.0080.00019.13
8.2.190.0120.00316.58
8.2.180.0160.01016.63
8.2.170.0090.00622.96
8.2.160.0070.00720.43
8.2.150.0080.00024.18
8.2.140.0070.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00022.14
8.2.110.0060.00320.32
8.2.100.0090.00317.91
8.2.90.0000.00819.23
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0000.01017.91
8.2.50.0050.00518.07
8.2.40.0000.00818.06
8.2.30.0000.00719.32
8.2.20.0040.00417.73
8.2.10.0060.00318.05
8.2.00.0060.00617.73
8.1.280.0000.02125.92
8.1.270.0080.00023.96
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00023.86
8.1.230.0080.00418.96
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0060.00318.58
8.1.160.0040.00422.09
8.1.150.0020.00518.89
8.1.140.0050.00217.47
8.1.130.0030.00317.81
8.1.120.0040.00417.45
8.1.110.0050.00517.41
8.1.100.0070.00017.41
8.1.90.0050.00517.48
8.1.80.0030.00717.35
8.1.70.0000.00717.33
8.1.60.0050.00317.63
8.1.50.0000.00917.58
8.1.40.0050.00317.51
8.1.30.0040.00417.61
8.1.20.0030.00617.63
8.1.10.0050.00317.34
8.1.00.0040.00717.45
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0040.00418.43
8.0.270.0030.00316.74
8.0.260.0040.00417.25
8.0.250.0030.00316.90
8.0.240.0050.00216.86
8.0.230.0070.00016.84
8.0.220.0080.00016.87
8.0.210.0030.00516.79
8.0.200.0000.00816.88
8.0.190.0000.00816.93
8.0.180.0060.00316.92
8.0.170.0000.00816.94
8.0.160.0070.00016.73
8.0.150.0020.00516.80
8.0.140.0030.00616.89
8.0.130.0060.00013.24
8.0.120.0040.00416.83
8.0.110.0080.00016.80
8.0.100.0040.00416.87
8.0.90.0040.00416.77
8.0.80.0100.00616.85
8.0.70.0040.00416.77
8.0.60.0000.00716.82
8.0.50.0040.00416.71
8.0.30.0060.01517.05
8.0.20.0100.01017.40
8.0.10.0050.00317.11
8.0.00.0150.00616.66
7.4.330.0000.00515.13
7.4.320.0030.00316.39
7.4.300.0000.00616.50
7.4.290.0030.00316.59
7.4.280.0080.00016.44
7.4.270.0030.00316.51
7.4.260.0040.00416.59
7.4.250.0050.00216.39
7.4.240.0040.00416.55
7.4.230.0050.00316.61
7.4.220.0070.01016.59
7.4.210.0120.00816.59
7.4.200.0040.00416.40
7.4.160.0090.01116.54
7.4.150.0070.01117.40
7.4.140.0110.00617.86
7.4.130.0080.00916.47
7.4.120.0110.00616.48
7.4.110.0100.00716.53
7.4.100.0080.00816.45
7.4.90.0120.00616.39
7.4.80.0070.01119.37
7.4.70.0060.01316.51
7.4.60.0070.01316.26
7.4.50.0080.00016.57
7.4.40.0140.00816.23
7.4.30.0150.00916.50
7.4.10.0040.01214.87
7.4.00.0120.00714.92
7.3.330.0050.00013.09
7.3.320.0000.00512.95
7.3.310.0070.00016.06
7.3.300.0030.00616.22
7.3.290.0090.00616.20
7.3.280.0150.00316.18
7.3.270.0070.01317.40
7.3.260.0100.00816.21
7.3.250.0090.01216.29
7.3.240.0090.00916.54
7.3.230.0040.01316.39
7.3.210.0080.00816.46
7.3.200.0080.01219.39
7.3.190.0170.00716.14
7.3.180.0070.01416.08
7.3.170.0090.00916.27
7.3.160.0080.00816.34
7.3.130.0040.01414.73
7.3.120.0150.00614.58
7.3.110.0100.01014.91
7.3.100.0070.00714.89
7.3.90.0090.00614.78
7.3.80.0060.00914.78
7.3.70.0030.01214.80
7.3.60.0030.00714.39
7.3.50.0100.00714.81
7.3.40.0070.00714.71
7.3.30.0080.00414.84
7.3.20.0070.00716.48
7.3.10.0030.01016.35
7.3.00.0110.00616.62
7.2.330.0080.01216.67
7.2.320.0070.01116.70
7.2.310.0150.00916.59
7.2.300.0070.01016.49
7.2.290.0160.00016.18
7.2.260.0120.00914.81
7.2.250.0030.01714.83
7.2.240.0030.01214.74
7.2.230.0040.01114.61
7.2.220.0080.00415.02
7.2.210.0070.00414.84
7.2.200.0030.01314.74
7.2.190.0070.00315.07
7.2.180.0030.01014.64
7.2.170.0090.00014.90
7.2.160.0060.00914.86
7.2.150.0040.00816.91
7.2.140.0040.00716.81
7.2.130.0080.00416.45
7.2.120.0070.01016.80
7.2.110.0070.00716.59
7.2.100.0100.00316.63
7.2.90.0060.00616.92
7.2.80.0100.00716.62
7.2.70.0060.00916.79
7.2.60.0080.00616.65
7.2.50.0070.01116.75
7.2.40.0060.00316.68
7.2.30.0120.00016.64
7.2.20.0040.01516.90
7.2.10.0070.00716.55
7.2.00.0060.00817.92
7.1.330.0090.00315.81
7.1.320.0050.00515.64
7.1.310.0070.01115.55
7.1.300.0000.01215.65
7.1.290.0070.00715.64
7.1.280.0070.00315.50
7.1.270.0040.00815.48
7.1.260.0060.00615.51
7.1.250.0110.00615.77
7.1.240.0080.00415.98
7.1.230.0090.00615.80
7.1.220.0030.01015.71
7.1.210.0060.00615.80
7.1.200.0060.01115.61
7.1.190.0060.00315.50
7.1.180.0060.00615.77
7.1.170.0090.00915.67
7.1.160.0040.00815.63
7.1.150.0030.00615.45
7.1.140.0040.01115.61
7.1.130.0060.00315.87
7.1.120.0060.00615.41
7.1.110.0120.00015.86
7.1.100.0070.00716.93
7.1.90.0070.00715.49
7.1.80.0030.01015.61
7.1.70.0060.00416.27
7.1.60.0050.01417.55
7.1.50.0100.00116.31
7.1.40.0030.00715.48
7.1.30.0060.00615.52
7.1.20.0030.00915.78
7.1.10.0040.00715.83
7.1.00.0070.04019.07
7.0.330.0030.00915.38
7.0.320.0030.00815.23
7.0.310.0060.00315.34
7.0.300.0040.01515.29
7.0.290.0100.00015.30
7.0.280.0030.00915.39
7.0.270.0120.00315.45
7.0.260.0060.00615.35
7.0.250.0030.01315.14
7.0.240.0060.00615.39
7.0.230.0060.00615.20
7.0.220.0030.01015.40
7.0.210.0030.01015.33
7.0.200.0050.00515.98
7.0.190.0030.01115.59
7.0.180.0140.00015.47
7.0.170.0030.00715.33
7.0.160.0080.00315.32
7.0.150.0060.00615.46
7.0.140.0030.03818.69
7.0.130.0080.00415.03
7.0.120.0000.01115.50
7.0.110.0040.00815.50
7.0.100.0060.00915.35
7.0.90.0070.00715.42
7.0.80.0120.00615.36
7.0.70.0040.01215.13
7.0.60.0050.04717.72
7.0.50.0000.02616.66
7.0.40.0050.03516.87
7.0.30.0140.02416.82
7.0.20.0170.03216.72
7.0.10.0120.02816.79
7.0.00.0120.03016.81
5.6.400.0060.00914.67
5.6.390.0040.00714.57
5.6.380.0040.01114.25
5.6.370.0050.01014.45
5.6.360.0070.01114.04
5.6.350.0030.01014.23
5.6.340.0040.01214.55
5.6.330.0060.00614.11
5.6.320.0000.01814.19
5.6.310.0060.00614.03
5.6.300.0030.00714.59
5.6.290.0000.01614.09
5.6.280.0070.00714.20
5.6.270.0110.00014.01
5.6.260.0000.01514.14
5.6.250.0060.01214.21
5.6.240.0030.01414.22
5.6.230.0000.01114.28
5.6.220.0060.00314.36
5.6.210.0020.03917.30
5.6.200.0110.04016.27
5.6.190.0070.04717.53
5.6.180.0290.03617.50
5.6.170.0170.03517.22
5.6.160.0080.02317.32
5.6.150.0030.02816.19
5.6.140.0060.02416.26
5.6.130.0030.03116.19
5.6.120.0070.04817.59
5.6.110.0100.04617.54
5.6.100.0080.03517.68
5.6.90.0100.02517.60
5.6.80.0080.02717.41
5.6.70.0000.01514.15
5.6.60.0000.01113.95
5.6.50.0070.01014.11
5.6.40.0070.00314.33
5.6.30.0000.01314.22
5.6.20.0040.00814.10
5.6.10.0000.01414.39
5.6.00.0040.01114.18
5.5.380.0030.01014.36
5.5.370.0060.00614.34
5.5.360.0090.00614.23
5.5.350.0080.02517.23
5.5.340.0030.02415.99
5.5.330.0050.03117.22
5.5.320.0170.02217.21
5.5.310.0150.02217.13
5.5.300.0020.03116.28
5.5.290.0070.04216.12
5.5.280.0090.02817.47
5.5.270.0030.04517.45
5.5.260.0140.03817.60
5.5.250.0080.04317.41
5.5.240.0130.03817.36
5.5.230.0000.01414.30
5.5.220.0090.00614.25
5.5.210.0030.01413.91
5.5.200.0070.00714.02
5.5.190.0100.00314.20
5.5.180.0060.00614.23
5.5.170.0030.01214.08
5.5.160.0060.00614.17
5.5.150.0030.00814.24
5.5.140.0040.01114.18
5.5.130.0070.00714.12
5.5.120.0110.00413.93
5.5.110.0040.00814.47
5.5.100.0090.00614.16
5.5.90.0070.00314.41
5.5.80.0030.01014.09
5.5.70.0100.00414.21
5.5.60.0110.00414.20
5.5.50.0030.01114.20
5.5.40.0030.00714.30
5.5.30.0040.00414.11
5.5.20.0000.01614.23
5.5.10.0090.00614.36
5.5.00.0060.00614.23
5.4.450.0100.04515.96
5.4.440.0490.03515.91
5.4.430.0490.03015.91
5.4.420.0480.00215.93
5.4.410.0360.00315.90
5.4.400.0350.00215.72
5.4.390.0370.00215.71
5.4.380.0120.03515.61
5.4.370.0150.03415.59
5.4.360.0100.02715.58
5.4.350.0160.03115.49
5.4.340.0330.02515.49
5.4.330.0090.00312.36
5.4.320.0050.02112.49
5.4.310.0060.02212.49
5.4.300.0040.02212.49
5.4.290.0030.02312.49
5.4.280.0060.02412.44
5.4.270.0050.02512.44
5.4.260.0040.02312.44
5.4.250.0050.03012.43
5.4.240.0080.02312.44
5.4.230.0060.02112.43
5.4.220.0050.02412.43
5.4.210.0070.02012.43
5.4.200.0060.02112.43
5.4.190.0050.02512.43
5.4.180.0070.02112.43
5.4.170.0050.02612.43
5.4.160.0020.02312.43
5.4.150.0040.02212.43
5.4.140.0080.02212.27
5.4.130.0060.02012.26
5.4.120.0050.02512.24
5.4.110.0060.02112.24
5.4.100.0030.02812.24
5.4.90.0040.02212.24
5.4.80.0020.02512.24
5.4.70.0020.02512.24
5.4.60.0040.02212.24
5.4.50.0040.02412.24
5.4.40.0050.02112.23
5.4.30.0070.02312.23
5.4.20.0050.02212.23
5.4.10.0090.01612.23
5.4.00.0050.02111.98
5.3.290.0060.03812.84
5.3.280.0060.04312.77
5.3.270.0070.04712.78
5.3.260.0100.04112.78
5.3.250.0030.04012.78
5.3.240.0050.04712.78
5.3.230.0070.03612.77
5.3.220.0060.03612.74
5.3.210.0070.05112.74
5.3.200.0080.03512.73
5.3.190.0060.03612.74
5.3.180.0120.03112.74
5.3.170.0040.03712.74
5.3.160.0050.03612.74
5.3.150.0050.03712.73
5.3.140.0110.03912.73
5.3.130.0070.04212.72
5.3.120.0050.05012.72
5.3.110.0070.04312.72
5.3.100.0090.03412.21
5.3.90.0050.04312.19
5.3.80.0030.03812.18
5.3.70.0060.03612.18
5.3.60.0080.04112.16
5.3.50.0060.03512.11
5.3.40.0080.04212.11
5.3.30.0050.04212.07
5.3.20.0050.04111.86
5.3.10.0050.03711.82
5.3.00.0080.04011.80
5.2.170.0060.0299.32
5.2.160.0090.0309.31
5.2.150.0040.0339.31
5.2.140.0070.0329.30
5.2.130.0050.0329.27
5.2.120.0080.0359.27
5.2.110.0040.0339.28
5.2.100.0080.0289.28
5.2.90.0070.0319.28
5.2.80.0100.0269.27
5.2.70.0060.0389.27
5.2.60.0050.0339.22
5.2.50.0040.0309.19
5.2.40.0020.0379.16
5.2.30.0050.0289.14
5.2.20.0060.0309.14
5.2.10.0040.0289.04
5.2.00.0040.0298.91
5.1.60.0040.0328.18
5.1.50.0050.0248.18
5.1.40.0030.0348.16
5.1.30.0040.0258.52
5.1.20.0050.0248.55
5.1.10.0060.0298.27
5.1.00.0040.0358.28
5.0.50.0050.0246.75
5.0.40.0050.0196.61
5.0.30.0020.0326.43
5.0.20.0040.0186.42
5.0.10.0060.0226.40
5.0.00.0000.0346.39
4.4.90.0020.0174.79
4.4.80.0030.0164.77
4.4.70.0020.0194.76
4.4.60.0020.0174.75
4.4.50.0030.0164.77
4.4.40.0020.0304.76
4.4.30.0020.0164.75
4.4.20.0040.0204.85
4.4.10.0030.0204.85
4.4.00.0040.0234.79
4.3.110.0020.0214.69
4.3.100.0040.0184.68
4.3.90.0040.0184.69
4.3.80.0040.0244.70
4.3.70.0020.0154.68
4.3.60.0020.0154.69
4.3.50.0010.0174.69
4.3.40.0030.0244.64
4.3.30.0020.0163.45
4.3.20.0030.0153.43
4.3.10.0030.0153.38
4.3.00.0000.0404.63

preferences:
62.24 ms | 401 KiB | 5 Q