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($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.60.0080.00818.30
8.3.50.0120.00621.86
8.3.40.0150.00718.52
8.3.30.0120.00318.83
8.3.20.0080.00020.34
8.3.10.0000.00820.54
8.3.00.0040.01119.26
8.2.180.0070.01016.50
8.2.170.0090.00622.96
8.2.160.0080.00520.52
8.2.150.0120.00824.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00022.12
8.2.110.0060.00320.24
8.2.100.0120.00017.69
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0050.00517.80
8.2.50.0060.00318.07
8.2.40.0030.00617.91
8.2.30.0030.00619.18
8.2.20.0040.00417.68
8.2.10.0000.00818.05
8.2.00.0040.00417.55
8.1.280.0130.00725.92
8.1.270.0030.00623.76
8.1.260.0070.00726.35
8.1.250.0000.00828.09
8.1.240.0030.00621.99
8.1.230.0040.00722.20
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0040.00417.10
8.1.180.0080.00018.10
8.1.170.0060.00618.66
8.1.160.0000.00721.87
8.1.150.0040.00418.79
8.1.140.0030.00517.38
8.1.130.0000.00717.93
8.1.120.0070.00017.39
8.1.110.0000.00817.42
8.1.100.0050.00317.37
8.1.90.0080.00317.46
8.1.80.0030.00617.33
8.1.70.0000.00717.43
8.1.60.0040.00417.57
8.1.50.0060.00317.53
8.1.40.0080.00017.49
8.1.30.0050.00317.53
8.1.20.0040.00417.54
8.1.10.0000.00917.43
8.1.00.0030.00717.46
8.0.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0040.00418.43
8.0.270.0040.00417.24
8.0.260.0000.00717.15
8.0.250.0070.00016.93
8.0.240.0080.00016.96
8.0.230.0030.00316.92
8.0.220.0030.00316.88
8.0.210.0050.00316.83
8.0.200.0080.00016.86
8.0.190.0000.00816.82
8.0.180.0050.00316.84
8.0.170.0080.00016.91
8.0.160.0060.00316.84
8.0.150.0040.00416.83
8.0.140.0040.00416.79
8.0.130.0000.00613.41
8.0.120.0000.00816.74
8.0.110.0030.00616.89
8.0.100.0040.00416.70
8.0.90.0000.00816.78
8.0.80.0060.00916.93
8.0.70.0040.00416.88
8.0.60.0040.00416.95
8.0.50.0040.00416.74
8.0.30.0080.01117.03
8.0.20.0100.01017.40
8.0.10.0080.00016.95
8.0.00.0090.01116.64
7.4.330.0000.00615.00
7.4.320.0000.00716.58
7.4.300.0030.00316.50
7.4.290.0030.00316.48
7.4.280.0060.00316.56
7.4.270.0000.00716.49
7.4.260.0000.00716.57
7.4.250.0050.00316.55
7.4.240.0030.00416.57
7.4.230.0000.00716.68
7.4.220.0030.01816.36
7.4.210.0070.01116.53
7.4.200.0000.00716.63
7.4.160.0140.00816.65
7.4.150.0100.01017.40
7.4.140.0080.00917.86
7.4.130.0110.00816.55
7.4.120.0100.00816.40
7.4.110.0120.00616.33
7.4.100.0140.00316.58
7.4.90.0070.01016.40
7.4.80.0060.01619.37
7.4.70.0130.01016.41
7.4.60.0100.00816.41
7.4.50.0030.00516.39
7.4.40.0090.01216.48
7.4.30.0090.01616.57
7.4.00.0060.00915.00
7.3.330.0000.00512.93
7.3.320.0000.00613.04
7.3.310.0000.00716.13
7.3.300.0000.00816.20
7.3.290.0120.00316.13
7.3.280.0080.00916.19
7.3.270.0100.01017.40
7.3.260.0090.00916.26
7.3.250.0120.00816.34
7.3.240.0070.01016.24
7.3.230.0060.01016.39
7.3.210.0140.00316.34
7.3.200.0090.00919.39
7.3.190.0160.00316.53
7.3.180.0170.00016.37
7.3.170.0120.00616.27
7.3.160.0060.01016.46
7.2.330.0070.01416.37
7.2.320.0140.00616.60
7.2.310.0100.01016.54
7.2.300.0070.01016.53
7.2.290.0050.01016.54
7.2.60.0030.01016.79
7.2.00.0040.01119.15
7.1.200.0070.00715.69
7.1.100.0030.00917.86
7.1.70.0000.00717.06
7.1.60.0040.02219.32
7.1.50.0070.01516.89
7.1.00.0030.07322.54
7.0.200.0120.00416.68
7.0.140.0130.07322.07
7.0.60.0130.08019.99
7.0.50.0170.05317.81
7.0.40.0170.08320.11
7.0.30.0270.04320.22
7.0.20.0400.07720.05
7.0.10.0030.08320.26
7.0.00.0070.09020.35
5.6.280.0130.07320.96
5.6.210.0230.08020.77
5.6.200.0030.04318.17
5.6.190.0130.08020.41
5.6.180.3330.05720.78
5.6.170.0230.04320.50
5.6.160.0070.04320.46
5.6.150.0130.06018.24
5.6.140.0070.08318.29
5.6.130.0170.07718.19
5.6.120.0100.04321.16
5.6.110.0100.06021.21
5.6.100.0070.08721.11
5.6.90.0300.07721.04
5.6.80.0070.04020.57
5.6.70.3970.03720.59
5.5.350.0200.08320.49
5.5.340.0130.04018.08
5.5.330.0100.03720.31
5.5.320.0370.08720.27
5.5.310.0370.07020.34
5.5.300.0100.08018.07
5.5.290.0200.03718.01
5.5.280.0100.09021.00
5.5.270.0170.06720.71
5.5.260.0170.08320.86
5.5.250.0030.05020.86
5.5.240.0230.06320.25
5.4.450.0570.03719.55
5.4.440.0700.07319.38
5.4.430.0770.06719.33
5.4.420.0800.00019.56
5.4.410.0930.00019.42
5.4.400.0830.00019.13
5.4.390.0830.00019.13
5.4.380.0470.07718.80
5.4.370.0530.05018.61
5.4.360.0500.05718.83
5.4.350.0470.06318.62
5.4.340.0370.05018.65
5.4.320.0120.05012.62
5.4.310.0150.04212.61
5.4.300.0120.04112.62
5.4.290.0150.04112.62
5.4.280.0120.03912.51
5.4.270.0130.04312.51
5.4.260.0150.04412.51
5.4.250.0170.04212.51
5.4.240.0130.03712.51
5.4.230.0160.04512.51
5.4.220.0090.04712.50
5.4.210.0110.03612.51
5.4.200.0140.04012.50
5.4.190.0140.04812.50
5.4.180.0090.03612.50
5.4.170.0140.04612.51
5.4.160.0090.04112.50
5.4.150.0110.04012.50
5.4.140.0090.05112.18
5.4.130.0110.04212.17
5.4.120.0150.04412.13
5.4.110.0110.04012.13
5.4.100.0090.04112.13
5.4.90.0180.03512.13
5.4.80.0110.03912.13
5.4.70.0110.04812.12
5.4.60.0140.03612.13
5.4.50.0130.04612.12
5.4.40.0150.03812.11
5.4.30.0100.04112.11
5.4.20.0150.05112.11
5.4.10.0140.03412.11
5.4.00.0130.04111.61
5.3.290.0090.04312.84
5.3.280.0140.03812.76
5.3.270.0110.04112.78
5.3.260.0090.05112.78
5.3.250.0090.03712.78
5.3.240.0150.03912.78
5.3.230.0150.03812.77
5.3.220.0180.04212.74
5.3.210.0140.04012.74
5.3.200.0090.04212.73
5.3.190.0110.04212.74
5.3.180.0180.04112.74
5.3.170.0160.03512.73
5.3.160.0120.04112.73
5.3.150.0100.04112.73
5.3.140.0110.03812.73
5.3.130.0140.03912.72
5.3.120.0130.04012.72
5.3.110.0160.04012.72
5.3.100.0140.04012.21
5.3.90.0120.03812.20
5.3.80.0150.03812.18
5.3.70.0160.03412.18
5.3.60.0120.03812.16
5.3.50.0150.04212.11
5.3.40.0150.03912.11
5.3.30.0120.04512.08
5.3.20.0130.04511.86
5.3.10.0120.03911.82
5.3.00.0080.04211.81
5.2.170.0120.0419.32
5.2.160.0100.0299.32
5.2.150.0160.0349.32
5.2.140.0190.0319.31
5.2.130.0190.0239.27
5.2.120.0160.0319.27
5.2.110.0140.0289.28
5.2.100.0100.0329.28
5.2.90.0140.0359.28
5.2.80.0150.0349.27
5.2.70.0140.0359.27
5.2.60.0070.0359.23
5.2.50.0100.0339.19
5.2.40.0100.0339.17
5.2.30.0150.0269.15
5.2.20.0090.0329.14
5.2.10.0100.0309.06
5.2.00.0120.0298.93
5.1.60.0120.0278.22
5.1.50.0110.0288.22
5.1.40.0100.0268.20
5.1.30.0070.0368.55
5.1.20.0070.0308.59
5.1.10.0130.0308.30
5.1.00.0100.0308.30
5.0.50.0100.0286.79
5.0.40.0040.0316.64
5.0.30.0100.0366.46
5.0.20.0110.0206.44
5.0.10.0090.0256.42
5.0.00.0090.0326.41
4.4.90.0090.0174.81
4.4.80.0120.0254.79
4.4.70.0110.0164.78
4.4.60.0090.0154.79
4.4.50.0080.0184.80
4.4.40.0090.0294.79
4.4.30.0050.0224.79
4.4.20.0050.0274.86
4.4.10.0090.0274.86
4.4.00.0080.0314.82
4.3.110.0060.0244.73
4.3.100.0060.0164.72
4.3.90.0060.0194.71
4.3.80.0110.0314.71
4.3.70.0140.0114.71
4.3.60.0040.0164.71
4.3.50.0090.0174.70
4.3.40.0080.0264.66
4.3.30.0080.0253.47
4.3.20.0110.0153.45
4.3.10.0070.0193.40
4.3.00.0200.0334.95

preferences:
42.13 ms | 401 KiB | 5 Q