3v4l.org

run code in 300+ PHP versions simultaneously
<?php class /** */ C /** */ { } $php = <<<'EOT' <?php // Comment # Comment /** * @doc */ abstract class C { } EOT; for ($i = 258; $i < 409; ++$i) { $name = token_name($i); print "$i: $name\n"; } $tokens = token_get_all($php); $readable = ''; foreach ($tokens as $token) { if (is_array($token)) { list($id, $str, $line) = $token; $name = token_name($id); $readable .= "<$id:$name>$str"; } else { $readable .= "<*>$str"; } } # print $readable;

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.0090.00616.75
8.3.50.0090.00617.98
8.3.40.0090.00618.96
8.3.30.0120.00318.93
8.3.20.0000.00920.38
8.3.10.0030.00523.46
8.3.00.0040.00419.85
8.2.180.0160.00318.29
8.2.170.0060.00919.04
8.2.160.0000.01422.96
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00319.27
8.2.120.0080.00026.35
8.2.110.0060.00320.51
8.2.100.0060.00617.84
8.2.90.0050.00317.97
8.2.80.0080.00017.97
8.2.70.0050.00318.04
8.2.60.0070.00318.22
8.2.50.0000.00918.10
8.2.40.0030.00521.11
8.2.30.0070.00019.34
8.2.20.0000.00817.75
8.2.10.0050.00318.21
8.2.00.0000.00718.19
8.1.280.0070.00725.92
8.1.270.0060.01220.23
8.1.260.0030.00528.09
8.1.250.0080.00028.09
8.1.240.0030.00722.46
8.1.230.0000.01022.75
8.1.220.0040.00417.79
8.1.210.0040.00718.77
8.1.200.0050.00917.23
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0000.00918.38
8.1.160.0070.00019.02
8.1.150.0040.00418.90
8.1.140.0040.00419.64
8.1.130.0000.00717.58
8.1.120.0040.00417.52
8.1.110.0040.00417.49
8.1.100.0050.00317.38
8.1.90.0070.00317.50
8.1.80.0000.00817.45
8.1.70.0000.00717.39
8.1.60.0070.00317.60
8.1.50.0030.00617.57
8.1.40.0050.00317.59
8.1.30.0030.00517.60
8.1.20.0000.00817.62
8.1.10.0060.00317.55
8.1.00.0040.00417.39
8.0.300.0000.00820.04
8.0.290.0000.00816.63
8.0.280.0040.00418.36
8.0.270.0070.00017.28
8.0.260.0000.00617.18
8.0.250.0030.00516.90
8.0.240.0000.00717.04
8.0.230.0040.00416.91
8.0.220.0000.00816.97
8.0.210.0040.00416.99
8.0.200.0030.00316.98
8.0.190.0060.00617.04
8.0.180.0040.00416.97
8.0.170.0080.00016.89
8.0.160.0050.00217.05
8.0.150.0040.00417.03
8.0.140.0070.00016.93
8.0.130.0000.00613.43
8.0.120.0050.00316.90
8.0.110.0030.00516.91
8.0.100.0030.00517.03
8.0.90.0040.00417.03
8.0.80.0080.01116.93
8.0.70.0080.00016.94
8.0.60.0030.00516.85
8.0.50.0030.00516.79
8.0.30.0170.00317.10
8.0.20.0100.00917.40
8.0.10.0080.00016.96
8.0.00.0110.00816.81
7.4.330.0000.00516.67
7.4.320.0030.00316.54
7.4.300.0040.00416.46
7.4.290.0000.00816.62
7.4.280.0070.00016.60
7.4.270.0000.00716.62
7.4.260.0030.00316.50
7.4.250.0060.00316.61
7.4.240.0010.00616.57
7.4.230.0090.00016.59
7.4.220.0090.00616.55
7.4.210.0070.01416.64
7.4.200.0030.00316.63
7.4.160.0040.01416.71
7.4.150.0190.00017.40
7.4.140.0140.00917.86
7.4.130.0100.01216.56
7.4.120.0120.00916.49
7.4.110.0040.01516.54
7.4.100.0120.00916.40
7.4.90.0150.00316.50
7.4.80.0170.00319.39
7.4.70.0050.01116.58
7.4.60.0100.00716.50
7.4.50.0120.00316.62
7.4.40.0060.01116.71
7.4.30.0040.01516.38
7.4.00.0050.01114.76
7.3.330.0030.00313.43
7.3.320.0050.00013.26
7.3.310.0040.00416.54
7.3.300.0030.00316.29
7.3.290.0090.00716.36
7.3.280.0110.00816.40
7.3.270.0090.00917.40
7.3.260.0070.01016.45
7.3.250.0110.01416.43
7.3.240.0130.00516.49
7.3.230.0060.01216.39
7.3.210.0060.01216.43
7.3.200.0150.00916.51
7.3.190.0140.00516.56
7.3.180.0090.00916.25
7.3.170.0120.00616.52
7.3.160.0090.00816.41
7.3.120.0060.00915.03
7.3.110.0040.01414.80
7.3.100.0070.01014.82
7.3.90.0030.01315.09
7.3.80.0100.01015.07
7.3.70.0060.00914.47
7.3.60.0030.00614.94
7.3.50.0040.01114.80
7.3.40.0090.00614.97
7.3.30.0090.00614.98
7.3.20.0110.00016.78
7.3.10.0070.01016.80
7.3.00.0060.00616.77
7.2.330.0090.00916.59
7.2.320.0130.01016.63
7.2.310.0090.01016.70
7.2.300.0190.00616.50
7.2.290.0060.01316.57
7.2.250.0060.01515.09
7.2.240.0160.00314.64
7.2.230.0070.01115.00
7.2.220.0110.00415.11
7.2.210.0130.00715.29
7.2.200.0030.01315.07
7.2.190.0000.01615.07
7.2.180.0070.00715.25
7.2.170.0150.00014.97
7.2.120.0030.01016.75
7.2.110.0060.00616.40
7.2.100.0060.00616.38
7.2.90.0000.00916.57
7.2.80.0080.00316.66
7.2.70.0040.00717.07
7.2.60.0130.00417.00
7.2.50.0080.00816.71
7.2.40.0060.00916.85
7.2.30.0110.00416.70
7.2.20.0070.00716.84
7.2.10.0130.00016.79
7.2.00.0060.00718.08
7.1.330.0110.00715.84
7.1.320.0070.00715.83
7.1.310.0040.01115.75
7.1.300.0000.01315.64
7.1.290.0000.00915.92
7.1.280.0000.00915.89
7.1.270.0040.00715.92
7.1.260.0000.01315.80
7.1.240.0030.00315.75
7.1.230.0040.00415.83
7.1.220.0080.00015.76
7.1.210.0000.00915.54
7.1.200.0070.00415.83
7.1.190.0040.00815.95
7.1.180.0000.01415.75
7.1.170.0070.00715.86
7.1.160.0000.01315.53
7.1.150.0060.00616.01
7.1.140.0050.00315.82
7.1.130.0100.00315.75
7.1.120.0030.00915.84
7.1.110.0130.00015.68
7.1.100.0070.00416.99
7.1.90.0030.00715.71
7.1.80.0060.00615.94
7.1.70.0050.00516.47
7.1.60.0090.00817.72
7.1.50.0100.00616.51
7.1.40.0100.00315.61
7.1.30.0050.00515.87
7.1.20.0040.00715.91
7.1.10.0070.00015.78
7.1.00.0080.03819.08
7.0.320.0040.00715.28
7.0.310.0080.00315.38
7.0.300.0090.00315.45
7.0.290.0070.00715.18
7.0.280.0120.00015.25
7.0.270.0090.00315.29
7.0.260.0030.00715.42
7.0.250.0060.00615.42
7.0.240.0030.01015.44
7.0.230.0090.00315.44
7.0.220.0000.00715.41
7.0.210.0040.00415.44
7.0.200.0050.00515.98
7.0.190.0030.00915.44
7.0.180.0100.00315.45
7.0.170.0040.00415.44
7.0.160.0100.00315.55
7.0.150.0030.00915.57
7.0.140.0030.01015.45
7.0.130.0000.01215.30
7.0.120.0070.00815.56
7.0.110.0000.01315.45
7.0.100.0030.01015.22
7.0.90.0060.00615.50
7.0.80.0070.00415.20
7.0.70.0030.01015.47
7.0.60.0150.02517.72
7.0.50.0060.04316.72
7.0.40.0130.03516.89
7.0.30.0200.04216.83
7.0.20.0200.03716.76
7.0.10.0080.04516.73
7.0.00.0080.04316.72
5.6.380.0120.00014.79
5.6.370.0030.00714.63
5.6.360.0080.00414.73
5.6.350.0000.00714.50
5.6.340.0030.00514.55
5.6.330.0030.01014.42
5.6.320.0000.01214.04
5.6.310.0000.01114.58
5.6.300.0000.01514.54
5.6.290.0070.00714.36
5.6.280.0010.04617.92
5.6.270.0090.00314.53
5.6.260.0030.00614.34
5.6.250.0050.00514.36
5.6.240.0060.00014.64
5.6.230.0070.00714.32
5.6.220.0040.00814.48
5.6.210.0030.03517.46
5.6.200.0060.02216.32
5.6.190.0120.04217.44
5.6.180.0240.03517.43
5.6.170.0130.03717.56
5.6.160.0020.03617.44
5.6.150.0050.04616.37
5.6.140.0090.04316.30
5.6.130.0080.02516.28
5.6.120.0090.04517.80
5.6.110.0100.04817.84
5.6.100.0080.04217.55
5.6.90.0120.03517.70
5.6.80.0030.03817.47
5.6.70.0060.00614.23
5.6.60.0100.00314.27
5.6.50.0140.00014.37
5.6.40.0000.01214.57
5.6.30.0030.00914.54
5.6.20.0040.00814.49
5.6.10.0000.00714.36
5.6.00.0070.00714.35
5.5.380.0040.00811.21
5.5.370.0060.00311.23
5.5.360.0080.00311.07
5.5.350.0070.03715.91
5.5.340.0040.04714.71
5.5.330.0100.04015.70
5.5.320.0070.04515.76
5.5.310.0110.02615.77
5.5.300.0100.03814.65
5.5.290.0070.03714.69
5.5.280.0050.04316.02
5.5.270.0020.03816.03
5.5.260.0060.02016.15
5.5.250.0030.02315.97
5.5.240.0030.04215.75
5.5.230.0030.00611.28
5.5.220.0050.00011.30
5.5.210.0000.01011.07
5.5.200.0000.01111.17
5.5.190.0030.00311.07
5.5.180.0040.00811.37
5.5.170.0080.00014.53
5.5.160.0080.00311.47
5.5.150.0040.00411.21
5.5.140.0000.00911.07
5.5.130.0060.00011.07
5.5.120.0030.00711.14
5.5.110.0060.00311.21
5.5.100.0030.00311.35
5.5.90.0060.00311.35
5.5.80.0000.01111.07
5.5.70.0100.00011.07
5.5.60.0090.00311.26
5.5.50.0040.00711.32
5.5.40.0070.00311.18
5.5.30.0100.00311.13
5.5.20.0060.00611.35
5.5.10.0050.00011.13
5.5.00.0070.00311.31

preferences:
43.01 ms | 400 KiB | 5 Q