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)); 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.0070.01018.18
8.3.50.0050.01322.00
8.3.40.0040.01218.59
8.3.30.0170.00018.95
8.3.20.0040.00420.13
8.3.10.0090.00020.36
8.3.00.0120.00319.02
8.2.180.0150.00716.47
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00822.24
8.2.110.0070.00320.99
8.2.100.0060.00617.78
8.2.90.0030.00618.22
8.2.80.0040.00418.03
8.2.70.0030.00517.80
8.2.60.0030.00617.93
8.2.50.0030.00918.10
8.2.40.0050.00320.61
8.2.30.0070.00019.23
8.2.20.0040.00417.64
8.2.10.0080.00018.15
8.2.00.0050.00317.81
8.1.280.0070.01125.92
8.1.270.0050.00322.18
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00322.56
8.1.230.0000.01222.66
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0000.00817.22
8.1.190.0100.00017.23
8.1.180.0000.00818.10
8.1.170.0070.00318.50
8.1.160.0070.00022.13
8.1.150.0030.00518.75
8.1.140.0000.00717.43
8.1.130.0030.00317.91
8.1.120.0040.00417.39
8.1.110.0000.00817.32
8.1.100.0000.00817.29
8.1.90.0030.00717.48
8.1.80.0000.00817.41
8.1.70.0050.00317.34
8.1.60.0030.00517.55
8.1.50.0000.00817.46
8.1.40.0060.00317.58
8.1.30.0080.00017.58
8.1.20.0040.00417.77
8.1.10.0000.00717.52
8.1.00.0030.00717.33
8.0.300.0000.00720.02
8.0.290.0060.00316.75
8.0.280.0040.00418.31
8.0.270.0040.00417.25
8.0.260.0030.00317.21
8.0.250.0030.00516.88
8.0.240.0030.00516.88
8.0.230.0030.00316.90
8.0.220.0030.00316.78
8.0.210.0040.00416.91
8.0.200.0080.00016.82
8.0.190.0030.00516.89
8.0.180.0000.00716.92
8.0.170.0030.00516.79
8.0.160.0040.00416.85
8.0.150.0040.00416.82
8.0.140.0000.00716.84
8.0.130.0000.00613.35
8.0.120.0050.00316.80
8.0.110.0030.00616.79
8.0.100.0000.00716.87
8.0.90.0000.00716.90
8.0.80.0060.01016.85
8.0.70.0080.00016.95
8.0.60.0040.00416.71
8.0.50.0040.00416.91
8.0.30.0120.00716.80
8.0.20.0120.01117.40
8.0.10.0080.00016.88
8.0.00.0050.01316.78
7.4.330.0050.00015.09
7.4.320.0060.00016.57
7.4.300.0000.00616.56
7.4.290.0000.00716.57
7.4.280.0000.00716.60
7.4.270.0040.00416.46
7.4.260.0000.00716.48
7.4.250.0040.00416.44
7.4.240.0040.00416.52
7.4.230.0000.00816.68
7.4.220.0160.00616.55
7.4.210.0070.00716.63
7.4.200.0070.00016.66
7.4.160.0030.01316.38
7.4.150.0130.01417.40
7.4.140.0080.00817.86
7.4.130.0120.00916.58
7.4.120.0060.01116.54
7.4.110.0100.00716.48
7.4.100.0030.01416.60
7.4.90.0070.01116.52
7.4.80.0070.01119.37
7.4.70.0120.00616.46
7.4.60.0100.00616.37
7.4.50.0000.00516.62
7.4.40.0040.01416.38
7.4.30.0150.00916.49
7.3.330.0000.00513.16
7.3.320.0030.00313.16
7.3.310.0020.00516.26
7.3.300.0030.00316.15
7.3.290.0040.01216.35
7.3.280.0080.00916.31
7.3.270.0090.00917.40
7.3.260.0100.00716.26
7.3.250.0080.01016.33
7.3.240.0130.00316.32
7.3.230.0120.00616.40
7.3.210.0130.00716.31
7.3.200.0110.01119.39
7.3.190.0160.00316.27
7.3.180.0060.01216.48
7.3.170.0060.01016.35
7.3.160.0140.00316.57
7.3.10.0060.00616.30
7.3.00.0100.00316.63
7.2.330.0150.01516.33
7.2.320.0090.01216.54
7.2.310.0070.01016.45
7.2.300.0150.00316.69
7.2.290.0110.00516.52
7.2.130.0120.00416.73
7.2.120.0060.01016.89
7.2.110.0070.01116.65
7.2.100.0110.00416.52
7.2.90.0080.00016.83
7.2.80.0060.00916.84
7.2.70.0030.01416.80
7.2.60.0030.01016.83
7.2.50.0030.00616.48
7.2.40.0090.00616.81
7.2.30.0040.00716.87
7.2.20.0080.00316.57
7.2.10.0060.00316.83
7.2.00.0030.00818.08
7.1.250.0070.00715.59
7.1.240.0060.00315.66
7.1.230.0030.00715.47
7.1.220.0000.00815.80
7.1.210.0090.00415.88
7.1.200.0070.00715.53
7.1.190.0030.00615.81
7.1.180.0030.01015.91
7.1.170.0030.00915.78
7.1.160.0100.00715.70
7.1.150.0030.00615.73
7.1.140.0030.01015.86
7.1.130.0060.00315.72
7.1.120.0040.01115.80
7.1.110.0050.00515.84
7.1.100.0050.00516.66
7.1.90.0090.00315.71
7.1.80.0140.00015.70
7.1.70.0010.00616.14
7.1.60.0070.00717.60
7.1.50.0090.00816.32
7.1.40.0030.01015.44
7.1.30.0060.00615.63
7.1.20.0070.01015.49
7.1.10.0110.00715.82
7.1.00.0050.04119.02
7.0.330.0150.00615.37
7.0.320.0130.00715.45
7.0.310.0130.00315.42
7.0.300.0070.01515.36
7.0.290.0110.00715.46
7.0.280.0100.00715.42
7.0.270.0060.01315.19
7.0.260.0030.01715.29
7.0.250.0110.01115.48
7.0.240.0030.01615.43
7.0.230.0100.01015.41
7.0.220.0080.01115.36
7.0.210.0100.01315.30
7.0.200.0100.00715.78
7.0.190.0030.01315.29
7.0.180.0100.01015.18
7.0.170.0030.01715.35
7.0.160.0100.00715.29
7.0.150.0130.01015.33
7.0.140.0100.04218.68
7.0.130.0140.00715.21
7.0.120.0100.01015.19
7.0.110.0110.00415.51
7.0.100.0090.00615.38
7.0.90.0100.00715.26
7.0.80.0060.00915.55
7.0.70.0150.00915.12
7.0.60.0160.04417.74
7.0.50.0120.02416.63
7.0.40.0130.04516.86
7.0.30.0170.02716.78
7.0.20.0190.04416.81
7.0.10.0180.02116.84
7.0.00.0070.03216.82
5.6.380.0160.00614.18
5.6.370.0100.01014.38
5.6.360.0000.01914.38
5.6.350.0110.00713.95
5.6.340.0150.00914.19
5.6.330.0100.01014.41
5.6.320.0120.00414.41
5.6.310.0100.01014.26
5.6.300.0090.01314.25
5.6.290.0160.00614.10
5.6.280.0180.03717.71
5.6.270.0140.00314.27
5.6.260.0070.01314.79
5.6.250.0130.00714.14
5.6.240.0200.00014.21
5.6.230.0160.00914.22
5.6.220.0180.00314.35
5.6.210.0120.03717.46
5.6.200.0120.04516.34
5.6.190.0090.04117.35
5.6.180.0250.02817.31
5.6.170.0260.03817.55
5.6.160.0030.03317.48
5.6.150.0120.04516.41
5.6.140.0100.02316.32
5.6.130.0160.04016.29
5.6.120.0130.03017.72
5.6.110.0080.04517.66
5.6.100.0140.03917.77
5.6.90.0180.04517.69
5.6.80.0120.03817.23
5.6.70.0190.00014.09
5.6.60.0190.00014.03
5.6.50.0110.00714.24
5.6.40.0140.00713.95
5.6.30.0130.00613.91
5.6.20.0160.00614.41
5.6.10.0150.00614.31
5.6.00.0180.00314.15
5.5.380.0190.00311.16
5.5.370.0110.00710.89
5.5.360.0060.01211.10
5.5.350.0170.04715.67
5.5.340.0050.02514.67
5.5.330.0090.03415.82
5.5.320.0290.03015.84
5.5.310.0170.02315.61
5.5.300.0090.02314.61
5.5.290.0060.04814.54
5.5.280.0120.04015.86
5.5.270.0150.04415.92
5.5.260.0140.03415.94
5.5.250.0120.03915.83
5.5.240.1610.02315.71
5.5.230.0100.00710.55
5.5.220.0100.00311.07
5.5.210.0150.00010.77
5.5.200.0080.01211.08
5.5.190.0040.01410.55
5.5.180.0070.00710.97
5.5.170.0110.00711.11
5.5.160.0070.01011.05
5.5.150.0190.00310.96
5.5.140.0150.00611.06
5.5.130.0070.00710.91
5.5.120.0140.00711.16
5.5.110.0140.00711.01
5.5.100.0090.00911.18
5.5.90.0060.00911.05
5.5.80.0060.01310.82
5.5.70.0120.00610.95
5.5.60.0100.01311.15
5.5.50.0170.00311.19
5.5.40.0190.00010.98
5.5.30.0090.00911.29
5.5.20.0130.00310.77
5.5.10.0150.00611.07
5.5.00.0090.00911.02
5.4.450.0620.02415.39
5.4.440.0220.03115.17
5.4.430.0170.03815.09
5.4.420.0460.00215.42
5.4.410.0460.00215.21
5.4.400.0470.00214.94
5.4.390.0450.00314.99
5.4.380.0320.03514.78
5.4.370.0310.03714.95
5.4.360.0200.03714.88
5.4.350.0350.04114.82
5.4.340.0330.03314.95
5.4.330.0160.00310.84
5.4.320.0100.02411.75
5.4.310.0090.02611.69
5.4.300.0100.02411.79
5.4.290.0110.02311.86
5.4.280.0130.02111.81
5.4.270.0080.02711.79
5.4.260.0110.02511.75
5.4.250.0110.02411.70
5.4.240.0080.02711.59
5.4.230.0170.02811.65
5.4.220.0120.03111.70
5.4.210.0200.02311.82
5.4.200.0150.02311.63
5.4.190.0150.02911.54
5.4.180.0120.02711.66
5.4.170.0120.02411.87
5.4.160.0100.02811.75
5.4.150.0170.01911.77
5.4.140.0140.02011.55
5.4.130.0090.02711.72
5.4.120.0090.02211.45
5.4.110.0110.02411.53
5.4.100.0130.02511.52
5.4.90.0100.02511.59
5.4.80.0080.02511.50
5.4.70.0090.02311.60
5.4.60.0130.02211.49
5.4.50.0100.02211.58
5.4.40.0120.02211.58
5.4.30.0170.01811.63
5.4.20.0090.02311.48
5.4.10.0110.02511.60
5.4.00.0150.02011.37
5.3.290.0090.02511.64
5.3.280.0120.02111.70
5.3.270.0110.02311.63
5.3.260.0140.02211.72
5.3.250.0120.03111.74
5.3.240.0150.02311.66
5.3.230.0100.02611.70
5.3.220.0140.02311.68
5.3.210.0120.02511.69
5.3.200.0100.02511.61
5.3.190.0120.02411.63
5.3.180.0160.02211.70
5.3.170.0120.03011.72
5.3.160.0180.02411.66
5.3.150.0160.02011.73
5.3.140.0110.02511.61
5.3.130.0180.02611.60
5.3.120.0070.02911.69
5.3.110.0120.02311.69
5.3.100.0110.02211.48
5.3.90.0100.02511.40
5.3.80.0180.02411.24
5.3.70.0130.02411.23
5.3.60.0120.02411.33
5.3.50.0130.02511.40
5.3.40.0100.02411.34
5.3.30.0110.02011.37
5.3.20.0140.02411.30
5.3.10.0110.02411.09
5.3.00.0120.02111.21
5.2.170.0110.0209.62
5.2.160.0100.0199.62
5.2.150.0130.0199.62
5.2.140.0150.0209.62
5.2.130.0160.0289.60
5.2.120.0140.0239.60
5.2.110.0110.0239.61
5.2.100.0160.0229.61
5.2.90.0140.0139.60
5.2.80.0120.0239.60
5.2.70.0130.0179.60
5.2.60.0130.0209.58
5.2.50.0110.0209.56
5.2.40.0130.0179.55
5.2.30.0160.0189.54
5.2.20.0090.0199.53
5.2.10.0140.0209.50
5.2.00.0100.0249.43
5.1.60.0100.0229.08
5.1.50.0160.0179.07
5.1.40.0160.0209.06
5.1.30.0130.0239.24
5.1.20.0150.0219.26
5.1.10.0150.0209.12
5.1.00.0130.0219.12
5.0.50.0120.0108.36
5.0.40.0090.0128.29
5.0.30.0100.0188.20
5.0.20.0110.0148.19
5.0.10.0090.0158.17
5.0.00.0130.0188.17
4.4.90.0080.0137.37
4.4.80.0110.0107.36
4.4.70.0130.0127.36
4.4.60.0140.0117.36
4.4.50.0140.0137.37
4.4.40.0080.0237.36
4.4.30.0120.0157.36
4.4.20.0120.0157.39
4.4.10.0060.0157.40
4.4.00.0090.0167.38
4.3.110.0080.0137.33
4.3.100.0110.0137.32
4.3.90.0100.0167.32
4.3.80.0130.0187.32
4.3.70.0130.0107.32
4.3.60.0110.0127.32
4.3.50.0110.0127.32
4.3.40.0100.0197.30
4.3.30.0130.0136.70
4.3.20.0060.0156.69
4.3.10.0040.0146.67
4.3.00.0180.0128.69

preferences:
60.85 ms | 401 KiB | 5 Q