3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = 'print_r($_POST); ((800 + 20) - 800 / 2)'; $tokens = token_get_all("<?php {$input}"); $expr = ''; foreach($tokens as $token){ if(is_string($token)){ if(in_array($token, array('(', ')', '+', '-', '/', '*'), true)) $expr .= $token; continue; } list($id, $text) = $token; if(in_array($id, array(T_DNUMBER, T_LNUMBER))) $expr .= $text; } eval("\$result = {$expr};"); print "\nexpr = " . $expr; print "\nres = " . $result;

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.0190.00318.56
8.3.50.0070.00718.08
8.3.40.0150.00618.92
8.3.30.0120.00318.76
8.3.20.0060.00321.88
8.3.10.0040.00423.65
8.3.00.0080.00023.53
8.2.180.0040.01816.69
8.2.170.0100.00722.96
8.2.160.0100.00420.18
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0000.00721.07
8.2.120.0080.00026.35
8.2.110.0030.00619.25
8.2.100.0070.00417.84
8.2.90.0040.00419.26
8.2.80.0040.00418.09
8.2.70.0030.00518.04
8.2.60.0060.00317.63
8.2.50.0040.00418.16
8.2.40.0050.00320.41
8.2.30.0080.00020.62
8.2.20.0050.00218.05
8.2.10.0020.00518.04
8.2.00.0000.00718.00
8.1.280.0080.00825.92
8.1.270.0050.00221.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00423.68
8.1.230.0070.00422.71
8.1.220.0000.00817.74
8.1.210.0120.00018.77
8.1.200.0040.00417.22
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0060.00318.36
8.1.160.0040.00418.88
8.1.150.0000.00820.15
8.1.140.0000.00717.69
8.1.130.0030.00319.01
8.1.120.0030.00517.49
8.1.110.0070.00017.36
8.1.100.0000.00717.43
8.1.90.0040.00717.36
8.1.80.0040.00417.35
8.1.70.0030.00517.47
8.1.60.0030.00617.64
8.1.50.0060.00317.53
8.1.40.0040.00417.54
8.1.30.0040.00417.63
8.1.20.0070.00017.59
8.1.10.0000.00817.55
8.1.00.0040.00417.52
8.0.300.0040.00419.89
8.0.290.0030.00616.63
8.0.280.0070.00018.42
8.0.270.0070.00017.27
8.0.260.0030.00316.82
8.0.250.0030.00617.02
8.0.240.0000.00816.93
8.0.230.0000.00717.05
8.0.220.0000.00716.93
8.0.210.0070.00016.96
8.0.200.0080.00017.02
8.0.190.0040.00416.90
8.0.180.0000.00717.00
8.0.170.0080.00016.87
8.0.160.0030.00316.86
8.0.150.0000.00716.85
8.0.140.0080.00016.98
8.0.130.0060.00013.53
8.0.120.0040.00416.95
8.0.110.0030.00516.88
8.0.100.0040.00417.00
8.0.90.0000.00816.96
8.0.80.0130.01017.00
8.0.70.0040.00416.76
8.0.60.0040.00416.94
8.0.50.0000.00816.98
8.0.30.0090.00917.03
8.0.20.0140.00517.40
8.0.10.0020.00517.14
8.0.00.0150.00816.79
7.4.330.0030.00315.55
7.4.320.0000.00716.38
7.4.300.0000.00616.46
7.4.290.0030.00316.56
7.4.280.0050.00316.51
7.4.270.0000.00816.37
7.4.260.0030.00316.53
7.4.250.0080.00016.40
7.4.240.0000.00716.51
7.4.230.0040.00416.51
7.4.220.0060.00316.52
7.4.210.0070.01316.47
7.4.200.0030.00316.70
7.4.160.0110.00516.46
7.4.140.0090.01017.86
7.4.130.0100.00716.61
7.4.120.0140.00516.53
7.4.110.0130.00316.46
7.4.100.0090.00916.60
7.4.90.0170.00016.52
7.4.80.0130.01019.39
7.4.70.0110.00816.53
7.4.60.0080.00816.62
7.4.50.0040.00716.67
7.4.40.0120.00316.63
7.4.00.0050.01414.98
7.3.330.0000.00513.20
7.3.320.0000.00713.30
7.3.310.0040.00416.23
7.3.300.0040.00416.25
7.3.290.0130.00516.40
7.3.280.0130.00516.51
7.3.260.0100.00916.53
7.3.250.0090.01016.59
7.3.240.0110.00816.41
7.3.230.0140.00316.52
7.3.210.0090.00916.66
7.3.200.0120.00416.62
7.3.190.0080.00816.42
7.3.180.0090.00616.48
7.3.170.0140.00916.40
7.3.160.0060.00916.48
7.3.120.0030.01514.93
7.3.110.0120.00614.84
7.3.100.0110.00414.89
7.3.90.0030.01414.96
7.3.80.0030.01015.14
7.3.70.0030.00614.97
7.3.60.0070.01114.99
7.3.50.0100.01014.82
7.3.40.0100.01014.80
7.3.30.0040.00814.94
7.3.20.0070.01016.79
7.3.10.0060.00616.58
7.3.00.0000.01216.90
7.2.330.0100.00716.44
7.2.320.0100.00616.48
7.2.310.0140.00416.73
7.2.300.0110.00616.73
7.2.290.0070.01016.80
7.2.250.0090.00915.38
7.2.240.0070.01015.33
7.2.230.0110.00615.26
7.2.220.0040.00715.09
7.2.210.0030.01515.05
7.2.200.0030.00715.15
7.2.190.0000.01315.09
7.2.180.0100.01015.11
7.2.170.0070.00715.08
7.2.60.0100.00317.09
7.2.30.0150.00819.96
7.2.20.0100.01219.88
7.2.10.0080.01419.73
7.2.00.0090.01419.96
7.1.330.0000.01115.60
7.1.320.0090.00315.57
7.1.310.0060.00915.79
7.1.300.0060.00915.75
7.1.290.0050.00815.98
7.1.280.0070.01115.84
7.1.270.0130.00015.85
7.1.260.0060.00315.81
7.1.200.0040.01115.63
7.1.150.0050.01718.70
7.1.140.0090.01418.48
7.1.130.0070.01618.97
7.1.120.0080.00718.73
7.1.110.0060.01618.17
7.1.100.0060.01418.20
7.1.90.0080.00917.96
7.1.80.0100.01018.36
7.1.70.0130.00717.34
7.1.60.0340.01334.96
7.1.50.0310.01434.93
7.1.40.0300.01234.50
7.1.30.0290.01634.68
7.1.20.0290.01934.34
7.1.10.0080.01416.77
7.1.00.0100.01216.66

preferences:
47.84 ms | 400 KiB | 5 Q