3v4l.org

run code in 300+ PHP versions simultaneously
<?php $js_file_contents = <<<CONTENTS Survey .StylesManager .applyTheme("default"); var json = { questions: [ { name: "name", type: "text", title: "Please enter your name:", placeHolder: "Jon Snow", isRequired: true }, { name: "birthdate", type: "text", inputType: "date", title: "Your birthdate:", isRequired: true }, { name: "color", type: "text", inputType: "color", title: "Your favorite color:" }, { name: "email", type: "text", inputType: "email", title: "Your e-mail:", placeHolder: "jon.snow@nightwatch.org", isRequired: true, validators: [ { type: "email" } ] } ] }; window.survey = new Survey.Model(json); survey .onComplete .add(function (result) { document .querySelector('#surveyResult') .innerHTML = "result: " + JSON.stringify(result.data); }); $("#surveyElement").Survey({model: survey}); CONTENTS; if (preg_match('~^var json = \K{.*?}(?=;)~ms', $js_file_contents, $match)) { // cut away extra $json = preg_replace('~^\s*\K\w+~m', '"\0"', $match[0]); // quote-wrap the keys var_export(json_decode($json, true)); // convert json string to array and display }

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.4.120.0110.00920.84
8.4.110.0100.01022.52
8.4.100.0130.00817.75
8.4.90.0080.01118.76
8.4.80.0120.00918.13
8.4.70.0140.00817.92
8.4.60.0150.00524.01
8.4.50.0090.00618.80
8.4.40.0100.00719.71
8.4.30.0030.01619.45
8.4.20.0130.00720.36
8.4.10.0000.00917.98
8.3.250.0060.00320.64
8.3.240.0100.00916.46
8.3.230.0120.00516.46
8.3.220.0120.00317.10
8.3.210.0040.00318.33
8.3.200.0130.00716.55
8.3.190.0090.00717.24
8.3.180.0100.00916.80
8.3.170.0070.01117.17
8.3.160.0160.00316.87
8.3.150.0060.01218.29
8.3.140.0040.01116.63
8.3.130.0040.00718.55
8.3.120.0040.00419.09
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0160.00016.63
8.3.80.0030.00717.97
8.3.70.0210.00016.88
8.3.60.0040.01118.18
8.3.50.0100.00318.07
8.3.40.0120.00319.09
8.3.30.0160.00319.09
8.3.20.0040.00419.35
8.3.10.0070.00021.90
8.3.00.0050.00320.77
8.2.290.0110.00720.33
8.2.280.0130.00518.89
8.2.270.0000.01017.36
8.2.260.0040.00418.88
8.2.250.0030.00716.61
8.2.240.0120.00318.92
8.2.230.0040.00422.58
8.2.220.0090.00337.54
8.2.210.0140.00326.77
8.2.200.0060.00316.75
8.2.190.0120.00416.74
8.2.180.0140.00316.88
8.2.170.0060.00922.96
8.2.160.0110.00322.96
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0050.00319.95
8.2.110.0060.00320.54
8.2.100.0090.00317.83
8.2.90.0040.00418.02
8.2.80.0040.00417.97
8.2.70.0080.00018.03
8.2.60.0040.00418.16
8.2.50.0080.00018.10
8.2.40.0080.00019.34
8.2.30.0050.00319.38
8.2.20.0050.00318.18
8.2.10.0080.00018.09
8.2.00.0000.00817.91
8.1.330.0120.00921.92
8.1.320.0140.00616.29
8.1.310.0060.00318.51
8.1.300.0040.01118.07
8.1.290.0030.00618.88
8.1.280.0120.00925.92
8.1.270.0040.00419.07
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00717.63
8.1.230.0090.00322.74
8.1.220.0000.00817.88
8.1.210.0050.00318.77
8.1.200.0030.00617.47
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00318.76
8.1.160.0070.00018.89
8.1.150.0050.00218.89
8.1.140.0000.00822.17
8.1.130.0030.00320.02
8.1.120.0000.00717.65
8.1.110.0000.00717.61
8.1.100.0040.00417.48
8.1.90.0070.00317.65
8.1.80.0000.00817.59
8.1.70.0060.00317.52
8.1.60.0030.00617.77
8.1.50.0070.00417.68
8.1.40.0040.00417.67
8.1.30.0030.00617.80
8.1.20.0060.00317.84
8.1.10.0040.00417.68
8.1.00.0000.00817.55
8.0.300.0070.00020.07
8.0.290.0080.00016.88
8.0.280.0000.00718.46
8.0.270.0050.00217.17
8.0.260.0030.00318.34
8.0.250.0000.00717.12
8.0.240.0040.00417.02
8.0.230.0030.00317.07
8.0.220.0040.00417.02
8.0.210.0000.00717.00
8.0.200.0000.00716.98
8.0.190.0090.00017.04
8.0.180.0030.00617.14
8.0.170.0000.00817.14
8.0.160.0040.00417.04
8.0.150.0070.00017.08
8.0.140.0000.00717.07
8.0.130.0000.00813.55
8.0.120.0000.00717.02
8.0.110.0070.00316.99
8.0.100.0040.00417.14
8.0.90.0050.00316.95
8.0.80.0100.00817.04
8.0.70.0000.00817.11
8.0.60.0040.00417.13
8.0.50.0030.00517.12
8.0.30.0060.01217.33
8.0.20.0130.01017.59
8.0.10.0000.00817.28
8.0.00.0050.01416.99
7.4.330.0020.00215.55
7.4.320.0050.00216.71
7.4.300.0030.00316.63
7.4.290.0040.00416.77
7.4.280.0040.00516.70
7.4.270.0040.00416.70
7.4.260.0030.00616.70
7.4.250.0030.00516.52
7.4.240.0080.00016.63
7.4.230.0000.00716.61
7.4.220.0000.00716.89
7.4.210.0140.00316.63
7.4.200.0000.00716.78
7.4.160.0080.01016.75
7.4.140.0080.01117.86
7.4.130.0160.00716.77
7.4.120.0090.01016.74
7.4.110.0060.01216.79
7.4.100.0100.01016.60
7.4.90.0090.00916.73
7.4.80.0120.00619.39
7.4.70.0120.00316.83
7.4.60.0090.00616.68
7.4.50.0100.00616.85
7.4.40.0040.01716.72
7.4.00.0110.00715.48
7.3.330.0030.00313.38
7.3.320.0030.00313.36
7.3.310.0000.00916.52
7.3.300.0000.00716.38
7.3.290.0000.00716.45
7.3.280.0060.00916.40
7.3.260.0080.01316.65
7.3.240.0080.01216.49
7.3.230.0120.01216.39
7.3.210.0070.01116.57
7.3.200.0070.01016.56
7.3.190.0120.00616.41
7.3.180.0070.01316.52
7.3.170.0100.00916.45
7.3.160.0120.00916.51
7.2.330.0060.01016.61
7.2.320.0100.01316.71
7.2.310.0120.00316.61
7.2.300.0100.00716.61
7.2.290.0100.00716.64
7.2.110.0140.00714.80
7.2.100.0500.00614.75
7.2.90.0100.01014.80
7.2.80.0280.00714.86
7.2.70.1180.00715.17
7.2.60.0460.00915.19
7.2.50.0490.00715.25
7.2.40.1300.01015.28
7.2.30.0260.01115.06
7.2.20.0190.00514.80
7.2.10.0130.01314.81
7.2.00.1040.00915.01
7.1.230.0090.00913.78
7.1.220.0700.00713.73
7.1.210.0150.00513.93
7.1.200.0490.00314.02
7.1.190.1230.00314.05
7.1.180.1180.00014.11
7.1.170.1150.01014.15
7.1.160.1290.00014.03
7.1.150.0380.00614.09
7.1.140.0790.00313.69
7.1.130.1020.01013.71
7.1.120.1130.01413.71
7.1.110.1410.00614.00
7.1.100.1590.00714.11
7.1.90.0960.00714.01
7.1.80.1270.00913.86
7.1.70.1060.01213.91
7.1.60.1420.00632.13
7.1.50.1660.01032.18
7.1.40.1640.00732.11
7.1.30.1550.01032.31
7.1.20.1820.01331.98
7.1.10.0320.01213.62
7.1.00.1270.01014.09
5.6.380.0070.00714.07

preferences:
27.21 ms | 403 KiB | 5 Q