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_class_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.0150.00318.43
8.3.50.0040.01118.01
8.3.40.0190.00318.70
8.3.30.0030.01219.04
8.3.20.0080.00019.99
8.3.10.0080.00020.65
8.3.00.0040.00419.50
8.2.180.0040.01516.88
8.2.170.0120.00322.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00722.23
8.2.110.0100.00019.45
8.2.100.0080.00517.78
8.2.90.0040.00419.30
8.2.80.0050.00317.97
8.2.70.0030.00717.25
8.2.60.0000.00817.90
8.2.50.0000.00818.07
8.2.40.0050.00318.16
8.2.30.0040.00419.29
8.2.20.0000.00917.82
8.2.10.0040.00418.07
8.2.00.0040.00417.80
8.1.280.0110.00725.92
8.1.270.0060.00323.96
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0100.00022.04
8.1.230.0110.00018.95
8.1.220.0060.00317.76
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00618.58
8.1.160.0040.00422.01
8.1.150.0020.00518.83
8.1.140.0000.00717.47
8.1.130.0030.00317.87
8.1.120.0040.00417.36
8.1.110.0040.00417.43
8.1.100.0040.00417.32
8.1.90.0000.00917.33
8.1.80.0050.00217.32
8.1.70.0070.00017.36
8.1.60.0040.00417.59
8.1.50.0030.00517.46
8.1.40.0000.00917.59
8.1.30.0040.00417.65
8.1.20.0000.00817.67
8.1.10.0040.00417.52
8.1.00.0060.00617.57
8.0.300.0030.00518.77
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0040.00417.12
8.0.260.0000.00617.25
8.0.250.0000.00716.84
8.0.240.0000.00816.88
8.0.230.0040.00416.98
8.0.220.0000.00716.91
8.0.210.0000.00716.96
8.0.200.0080.00016.91
8.0.190.0030.00617.01
8.0.180.0040.00417.02
8.0.170.0040.00416.95
8.0.160.0000.00716.84
8.0.150.0080.00016.89
8.0.140.0040.00416.86
8.0.130.0000.00513.38
8.0.120.0030.00716.90
8.0.110.0000.00716.95
8.0.100.0040.00417.00
8.0.90.0080.00016.90
8.0.80.0070.01416.91
8.0.70.0040.00416.77
8.0.60.0070.00016.82
8.0.50.0070.00016.96
8.0.30.0130.00717.19
8.0.20.0080.01117.40
8.0.10.0030.00517.04
8.0.00.0100.01216.69
7.4.330.0030.00315.14
7.4.320.0060.00016.66
7.4.300.0000.00616.57
7.4.290.0030.00316.56
7.4.280.0000.00716.61
7.4.270.0040.00416.56
7.4.260.0030.00616.56
7.4.250.0000.00816.62
7.4.240.0030.00416.60
7.4.230.0030.00316.31
7.4.220.0110.00716.61
7.4.210.0000.01416.65
7.4.200.0000.00716.57
7.4.160.0090.00616.36
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0080.00816.62
7.4.120.0140.00816.52
7.4.110.0070.01016.56
7.4.100.0090.00916.45
7.4.90.0070.01016.61
7.4.80.0100.00619.37
7.4.70.0120.00616.44
7.4.60.0130.00616.56
7.4.50.0060.00316.78
7.4.40.0020.01516.32
7.4.30.0140.01016.52
7.4.10.0040.01415.22
7.4.00.0060.01115.04
7.3.330.0000.00513.14
7.3.320.0030.00313.23
7.3.310.0030.00316.36
7.3.300.0000.00716.30
7.3.290.0180.00316.29
7.3.280.0130.00416.27
7.3.270.0110.01117.40
7.3.260.0160.00316.27
7.3.250.0110.00616.27
7.3.240.0090.00916.43
7.3.230.0130.00316.59
7.3.210.0070.01016.37
7.3.200.0070.01019.39
7.3.190.0040.01416.41
7.3.180.0030.01316.44
7.3.170.0060.01616.44
7.3.160.0070.01016.50
7.3.130.0080.01114.70
7.3.120.0070.01014.74
7.3.110.0080.00814.90
7.3.100.0060.01014.77
7.3.90.0080.01014.94
7.3.80.0070.00814.94
7.3.70.0090.00714.62
7.3.60.0040.00814.59
7.3.50.0090.00614.62
7.3.40.0050.01014.68
7.3.30.0050.00814.68
7.3.20.0070.00716.56
7.3.10.0040.00716.57
7.3.00.0060.00916.43
7.2.330.0060.01116.61
7.2.320.0120.00616.45
7.2.310.0110.00816.40
7.2.300.0100.00716.30
7.2.290.0100.00716.30
7.2.260.0020.01515.02
7.2.250.0050.01215.05
7.2.240.0020.01614.95
7.2.230.0080.01014.90
7.2.220.0050.01214.98
7.2.210.0060.01015.00
7.2.200.0060.00614.69
7.2.190.0080.00615.08
7.2.180.0090.00614.77
7.2.170.0070.00715.00
7.2.160.0030.01314.99
7.2.150.0030.01116.54
7.2.140.0130.00016.74
7.2.130.0130.00716.90
7.2.120.0040.00716.55
7.2.110.0000.00916.80
7.2.100.0040.01116.70
7.2.90.0060.01017.00
7.2.80.0000.01516.76
7.2.70.0070.00716.89
7.2.60.0030.01016.90
7.2.50.0000.01416.82
7.2.40.0060.00916.81
7.2.30.0000.01316.80
7.2.20.0030.01316.42
7.2.10.0070.00716.89
7.2.00.0070.01018.01
7.1.330.0060.00815.84
7.1.320.0100.00715.92
7.1.310.0100.00515.87
7.1.300.0060.01015.72
7.1.290.0030.01215.66
7.1.280.0050.00915.64
7.1.270.0050.00915.69
7.1.260.0090.00415.74
7.1.250.0040.01115.82
7.1.240.0030.00615.69
7.1.230.0040.01215.79
7.1.220.0000.01515.84
7.1.210.0090.00615.73
7.1.200.0090.00515.55
7.1.190.0030.00615.76
7.1.180.0070.00715.75
7.1.170.0030.01315.60
7.1.160.0110.00315.84
7.1.150.0030.00915.51
7.1.140.0110.00615.72
7.1.130.0030.00915.50
7.1.120.0040.00415.56
7.1.110.0000.01515.60
7.1.100.0060.01016.85
7.1.90.0100.00315.58
7.1.80.0030.00915.82
7.1.70.0060.00516.47
7.1.60.0070.01417.42
7.1.50.0030.00816.17
7.1.40.0000.01215.88
7.1.30.0040.01115.55
7.1.20.0080.00415.75
7.1.10.0060.00615.79
7.1.00.0060.04019.11
7.0.330.0100.00715.38
7.0.320.0030.01015.27
7.0.310.0000.01515.46
7.0.300.0040.01115.45
7.0.290.0060.00615.11
7.0.280.0060.00615.34
7.0.270.0060.00615.21
7.0.260.0050.00515.12
7.0.250.0060.00615.17
7.0.240.0000.00815.19
7.0.230.0030.00615.41
7.0.220.0080.00815.45
7.0.210.0130.00315.54
7.0.200.0050.00816.11
7.0.190.0090.00315.52
7.0.180.0030.00915.20
7.0.170.0060.00615.30
7.0.160.0100.00615.49
7.0.150.0040.01115.29
7.0.140.0020.04418.67
7.0.130.0060.00615.48
7.0.120.0070.00715.44
7.0.110.0040.01115.51
7.0.100.0000.00815.55
7.0.90.0000.01215.29
7.0.80.0000.01515.40
7.0.70.0040.01215.52
7.0.60.0030.04617.71
7.0.50.0090.04016.61
7.0.40.0050.02716.83
7.0.30.0180.02816.80
7.0.20.0260.03116.80
7.0.10.0050.05116.75
7.0.00.0130.03816.90
5.6.400.0060.00914.60
5.6.390.0130.00614.07
5.6.380.0030.00814.51
5.6.370.0070.01014.28
5.6.360.0070.00714.45
5.6.350.0060.00614.54
5.6.340.0070.00714.18
5.6.330.0000.01414.21
5.6.320.0030.01014.80
5.6.310.0060.00914.42
5.6.300.0000.01114.43
5.6.290.0030.01414.60
5.6.280.0070.03817.61
5.6.270.0030.00914.50
5.6.260.0110.00714.52
5.6.250.0000.01214.39
5.6.240.0090.00614.47
5.6.230.0060.01014.28
5.6.220.0000.01414.27
5.6.210.0050.02917.58
5.6.200.0020.02916.31
5.6.190.0090.04417.55
5.6.180.1820.02717.48
5.6.170.0180.04317.36
5.6.160.0090.02517.42
5.6.150.0080.02216.18
5.6.140.0100.03216.26
5.6.130.0110.04316.29
5.6.120.0030.02517.65
5.6.110.0100.04417.83
5.6.100.0100.04317.65
5.6.90.0080.03817.69
5.6.80.0070.04117.38
5.6.70.0170.02817.46
5.6.60.0000.01014.08
5.6.50.0090.00614.18
5.6.40.0030.00714.22
5.6.30.0030.01014.46
5.6.20.0070.00714.18
5.6.10.0000.01414.09
5.6.00.0140.00014.35
5.5.380.0070.00414.14
5.5.370.0040.01114.48
5.5.360.0120.00014.00
5.5.350.0170.04317.45
5.5.340.0060.02316.15
5.5.330.0060.02317.33
5.5.320.0220.04417.16
5.5.310.0170.02317.28
5.5.300.0110.02116.09
5.5.290.0030.02916.22
5.5.280.0080.03417.74
5.5.270.0020.04617.41
5.5.260.0100.04117.49
5.5.250.0090.03117.39
5.5.240.0200.04217.18
5.5.230.0100.00614.30
5.5.220.0070.00714.07
5.5.210.0000.01013.98
5.5.200.0040.00814.07
5.5.190.0030.01013.87
5.5.180.0000.00914.30
5.5.170.0030.00714.04
5.5.160.0030.01414.04
5.5.150.0030.01014.13
5.5.140.0040.00414.07
5.5.130.0090.00914.47
5.5.120.0060.01014.13
5.5.110.0090.00614.32
5.5.100.0110.00714.36
5.5.90.0090.00614.02
5.5.80.0040.01214.29
5.5.70.0070.01114.30
5.5.60.0070.01014.24
5.5.50.0040.01114.36
5.5.40.0090.00614.05
5.5.30.0030.01413.95
5.5.20.0070.00714.41
5.5.10.0030.01313.84
5.5.00.0030.01014.09
5.4.450.0440.03515.90
5.4.440.0400.03315.97
5.4.430.0480.03015.89
5.4.420.0360.00015.99
5.4.410.0330.00515.94
5.4.400.0330.00315.79
5.4.390.0360.00315.84
5.4.380.0230.03315.56
5.4.370.0230.03115.65
5.4.360.0140.02915.64
5.4.350.0210.03115.65
5.4.340.0190.03015.66
5.4.330.0000.00712.46
5.4.320.0040.02112.54
5.4.310.0070.02112.54
5.4.300.0060.02112.54
5.4.290.0050.02312.54
5.4.280.0060.02012.49
5.4.270.0060.02112.49
5.4.260.0100.02312.49
5.4.250.0070.02112.49
5.4.240.0060.02312.49
5.4.230.0040.02212.48
5.4.220.0070.02112.48
5.4.210.0060.02212.48
5.4.200.0040.02612.48
5.4.190.0090.01912.48
5.4.180.0100.01712.48
5.4.170.0040.02512.49
5.4.160.0070.02512.48
5.4.150.0020.02412.48
5.4.140.0040.03112.32
5.4.130.0050.02112.32
5.4.120.0040.02312.30
5.4.110.0050.02212.29
5.4.100.0060.02312.29
5.4.90.0070.02312.29
5.4.80.0080.02912.29
5.4.70.0040.02512.29
5.4.60.0040.02312.29
5.4.50.0070.01912.29
5.4.40.0040.02312.29
5.4.30.0050.02112.29
5.4.20.0070.01812.28
5.4.10.0050.02112.29
5.4.00.0030.02712.03
5.3.290.0100.04612.84
5.3.280.0080.04712.77
5.3.270.0050.04012.78
5.3.260.0090.03612.78
5.3.250.0090.04512.78
5.3.240.0060.04012.78
5.3.230.0040.04012.77
5.3.220.0070.04012.74
5.3.210.0080.03712.74
5.3.200.0050.03812.74
5.3.190.0100.04812.74
5.3.180.0050.03912.73
5.3.170.0050.03812.74
5.3.160.0050.03812.73
5.3.150.0050.03812.74
5.3.140.0090.03512.73
5.3.130.0050.04112.72
5.3.120.0070.03912.72
5.3.110.0020.04312.72
5.3.100.0090.03412.21
5.3.90.0090.03312.19
5.3.80.0100.04412.18
5.3.70.0110.03212.18
5.3.60.0060.03612.16
5.3.50.0060.03612.11
5.3.40.0060.03712.12
5.3.30.0060.03512.08
5.3.20.0060.03911.86
5.3.10.0060.03611.82
5.3.00.0040.05111.81
5.2.170.0050.0309.32
5.2.160.0060.0289.31
5.2.150.0070.0289.31
5.2.140.0030.0329.31
5.2.130.0050.0289.27
5.2.120.0050.0289.27
5.2.110.0070.0279.28
5.2.100.0040.0299.28
5.2.90.0080.0259.28
5.2.80.0030.0329.27
5.2.70.0110.0279.27
5.2.60.0040.0359.23
5.2.50.0060.0319.19
5.2.40.0030.0309.17
5.2.30.0060.0359.14
5.2.20.0090.0309.14
5.2.10.0100.0289.04
5.2.00.0050.0288.91
5.1.60.0030.0268.19
5.1.50.0070.0238.19
5.1.40.0070.0228.17
5.1.30.0010.0298.52
5.1.20.0040.0278.55
5.1.10.0050.0288.28
5.1.00.0050.0258.28
5.0.50.0040.0196.76
5.0.40.0030.0266.61
5.0.30.0060.0326.43
5.0.20.0050.0196.43
5.0.10.0040.0236.40
5.0.00.0030.0346.39
4.4.90.0050.0194.79
4.4.80.0020.0194.77
4.4.70.0040.0204.77
4.4.60.0040.0174.75
4.4.50.0040.0174.77
4.4.40.0050.0284.77
4.4.30.0050.0134.76
4.4.20.0040.0144.85
4.4.10.0020.0224.84
4.4.00.0020.0254.79
4.3.110.0040.0164.70
4.3.100.0030.0144.68
4.3.90.0050.0124.69
4.3.80.0040.0304.70
4.3.70.0040.0204.68
4.3.60.0050.0174.69
4.3.50.0050.0174.69
4.3.40.0010.0274.64
4.3.30.0030.0213.45
4.3.20.0030.0163.43
4.3.10.0050.0173.39
4.3.00.0170.0237.18

preferences:
43.29 ms | 400 KiB | 5 Q