3v4l.org

run code in 300+ PHP versions simultaneously
<?php $php = <<<'EOT' <?php // Comment # Comment /** * @doc */ abstract class C { } EOT; for ($i = 0; $i < 255; ++$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 .= "<$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.0140.00416.50
8.3.50.0300.00322.00
8.3.40.0130.00318.71
8.3.30.0080.00818.83
8.3.20.0030.00520.39
8.3.10.0040.00423.64
8.3.00.0030.00619.79
8.2.180.0120.00318.53
8.2.170.0060.00922.96
8.2.160.0140.00020.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00319.03
8.2.120.0030.00626.35
8.2.110.0060.00322.16
8.2.100.0080.00417.93
8.2.90.0050.00319.34
8.2.80.0030.00518.05
8.2.70.0030.00617.38
8.2.60.0060.00617.93
8.2.50.0080.00018.07
8.2.40.0080.00022.15
8.2.30.0050.00220.53
8.2.20.0000.00717.73
8.2.10.0080.00018.12
8.2.00.0040.00418.11
8.1.280.0110.00425.92
8.1.270.0070.01420.20
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0030.00623.98
8.1.230.0040.00819.10
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.00
8.1.180.0040.00418.10
8.1.170.0000.00818.34
8.1.160.0000.00720.67
8.1.150.0000.00718.76
8.1.140.0000.00819.53
8.1.130.0000.00717.55
8.1.120.0040.00417.39
8.1.110.0000.00717.45
8.1.100.0040.00417.50
8.1.90.0080.00317.45
8.1.80.0030.00517.50
8.1.70.0040.00417.41
8.1.60.0050.00517.46
8.1.50.0030.00617.52
8.1.40.0050.00417.53
8.1.30.0060.00317.71
8.1.20.0040.00417.64
8.1.10.0040.00417.52
8.1.00.0040.00417.52
8.0.300.0050.00318.77
8.0.290.0000.00716.75
8.0.280.0030.00318.45
8.0.270.0060.00318.55
8.0.260.0030.00317.19
8.0.250.0070.00016.90
8.0.240.0000.00717.00
8.0.230.0070.00317.00
8.0.220.0000.00716.87
8.0.210.0050.00216.99
8.0.200.0020.00517.03
8.0.190.0060.00616.89
8.0.180.0070.00017.04
8.0.170.0050.00316.93
8.0.160.0040.00416.92
8.0.150.0040.00416.89
8.0.140.0000.00716.93
8.0.130.0060.00013.34
8.0.120.0050.00316.88
8.0.110.0050.00316.94
8.0.100.0040.00416.80
8.0.90.0000.00816.90
8.0.80.0120.00316.87
8.0.70.0000.00716.95
8.0.60.0040.00416.80
8.0.50.0050.00317.02
8.0.30.0130.00917.10
8.0.20.0170.00617.40
8.0.10.0000.00717.09
8.0.00.0080.01116.74
7.4.330.0030.00216.77
7.4.320.0000.00716.51
7.4.300.0000.00616.45
7.4.290.0030.00316.55
7.4.280.0060.00316.59
7.4.270.0080.00016.52
7.4.260.0000.00716.63
7.4.250.0050.00316.57
7.4.240.0020.00616.40
7.4.230.0000.00816.62
7.4.220.0130.00316.57
7.4.210.0040.01216.60
7.4.200.0070.00016.39
7.4.160.0100.00716.57
7.4.150.0130.00717.40
7.4.140.0100.01617.86
7.4.130.0110.01016.62
7.4.120.0080.01016.57
7.4.110.0170.00316.41
7.4.100.0200.00016.48
7.4.90.0110.00816.50
7.4.80.0090.01219.39
7.4.70.0150.00416.69
7.4.60.0150.00316.42
7.4.50.0060.00616.35
7.4.40.0060.01116.70
7.4.30.0120.00716.47
7.4.10.0000.01814.63
7.4.00.0090.00914.89
7.3.330.0050.00013.13
7.3.320.0030.00313.15
7.3.310.0030.00516.49
7.3.300.0000.00716.41
7.3.290.0090.00816.42
7.3.280.0100.00916.46
7.3.270.0110.00917.40
7.3.260.0150.00416.55
7.3.250.0160.00816.42
7.3.240.0120.00816.56
7.3.230.0130.01016.44
7.3.210.0170.00716.46
7.3.200.0070.01416.44
7.3.190.0100.00716.56
7.3.180.0190.00416.50
7.3.170.0040.01316.48
7.3.160.0120.00616.64
7.3.130.0090.00914.82
7.3.120.0110.00714.73
7.3.110.0060.00614.93
7.3.100.0060.00915.07
7.3.90.0070.01114.81
7.3.80.0030.00914.89
7.3.70.0000.01514.87
7.3.60.0090.00314.99
7.3.50.0060.00314.85
7.3.40.0050.00514.57
7.3.30.0030.01014.76
7.3.20.0030.01016.68
7.3.10.0080.00316.69
7.3.00.0060.00916.87
7.2.330.0040.01516.71
7.2.320.0130.00616.56
7.2.310.0090.00916.73
7.2.300.0070.01316.62
7.2.290.0100.00916.54
7.2.260.0000.02115.22
7.2.250.0100.01015.26
7.2.240.0030.01015.17
7.2.230.0100.00315.17
7.2.220.0040.01615.17
7.2.210.0080.00414.91
7.2.200.0070.00715.20
7.2.190.0070.01014.66
7.2.180.0070.00715.07
7.2.170.0000.01615.21
7.2.160.0030.01315.05
7.2.150.0130.00016.97
7.2.140.0000.00916.97
7.2.130.0070.00716.85
7.2.120.0030.00617.07
7.2.110.0100.00717.09
7.2.100.0100.00316.96
7.2.90.0110.00717.02
7.2.80.0090.00916.80
7.2.70.0000.01617.00
7.2.60.0040.00716.93
7.2.50.0090.00617.02
7.2.40.0040.01216.99
7.2.30.0060.00917.07
7.2.20.0060.01016.91
7.2.10.0090.00917.11
7.2.00.0000.01318.24
7.1.330.0000.01116.04
7.1.320.0030.01615.62
7.1.310.0040.01115.71
7.1.300.0030.00715.86
7.1.290.0030.01015.86
7.1.280.0040.01415.66
7.1.270.0060.00616.04
7.1.260.0000.01215.73
7.1.250.0100.00715.79
7.1.240.0060.00815.57
7.1.230.0060.00915.59
7.1.220.0080.00415.68
7.1.210.0030.01215.87
7.1.200.0090.00515.83
7.1.190.0060.00615.68
7.1.180.0000.01315.82
7.1.170.0030.01015.63
7.1.160.0100.00015.70
7.1.150.0090.00915.97
7.1.140.0040.00415.90
7.1.130.0040.01215.85
7.1.120.0090.00615.56
7.1.110.0000.01315.52
7.1.100.0110.00416.83
7.1.90.0040.00815.97
7.1.80.0070.00715.68
7.1.70.0010.00716.49
7.1.60.0110.00817.57
7.1.50.0070.00825.38
7.1.40.0110.00415.84
7.1.30.0130.00315.74
7.1.20.0040.01015.76
7.1.10.0000.01215.62
7.1.00.0030.04219.06
7.0.330.0040.00815.39
7.0.320.0060.00615.55
7.0.310.0060.00315.63
7.0.300.0120.00315.41
7.0.290.0030.01015.35
7.0.280.0100.00615.32
7.0.270.0070.00715.41
7.0.260.0000.00915.43
7.0.250.0040.00715.27
7.0.240.0090.00315.45
7.0.230.0030.00615.47
7.0.220.0030.01115.39
7.0.210.0120.00315.47
7.0.200.0060.00416.29
7.0.190.0070.00315.20
7.0.180.0080.00415.37
7.0.170.0100.00615.22
7.0.160.0040.01215.30
7.0.150.0060.01015.31
7.0.140.0070.00715.53
7.0.130.0030.01015.28
7.0.120.0110.00715.52
7.0.110.0110.00715.46
7.0.100.0060.00915.38
7.0.90.0080.00815.53
7.0.80.0060.00615.41
7.0.70.0060.00615.62
7.0.60.0070.03417.71
7.0.50.0050.04716.64
7.0.40.0040.03116.81
7.0.30.0120.02916.90
7.0.20.0180.03216.96
7.0.10.0070.02416.75
7.0.00.0030.03616.74
5.6.400.0100.00614.69
5.6.390.0000.01314.66
5.6.380.0090.00614.68
5.6.370.0040.00814.40
5.6.360.0070.00314.31
5.6.350.0070.00414.52
5.6.340.0090.00014.21
5.6.330.0060.00914.38
5.6.320.0060.00314.53
5.6.310.0060.00314.80
5.6.300.0000.01614.39
5.6.290.0030.01214.40
5.6.280.0060.02017.81
5.6.270.0040.01614.49
5.6.260.0100.00014.22
5.6.250.0070.00714.55
5.6.240.0040.01214.31
5.6.230.0090.00014.29
5.6.220.0110.00314.46
5.6.210.0040.02917.37
5.6.200.0070.02216.28
5.6.190.0100.04217.32
5.6.180.0130.03317.48
5.6.170.0150.03517.51
5.6.160.0100.04317.32
5.6.150.0060.02916.16
5.6.140.0070.02116.27
5.6.130.0060.04616.24
5.6.120.0020.04817.67
5.6.110.0070.03817.64
5.6.100.0050.04717.76
5.6.90.0110.04317.93
5.6.80.0030.03017.38
5.6.70.0060.00314.16
5.6.60.0000.01314.16
5.6.50.0060.01214.30
5.6.40.0040.00814.26
5.6.30.0030.01014.64
5.6.20.0090.00014.22
5.6.10.0070.00714.21
5.6.00.0030.01014.26
5.5.380.0030.01014.25
5.5.370.0070.00714.57
5.5.360.0060.00314.14
5.5.350.0080.03817.47
5.5.340.0020.03016.06
5.5.330.0040.02717.36
5.5.320.0060.04617.41
5.5.310.0100.02817.25
5.5.300.0080.04016.29
5.5.290.0020.02716.01
5.5.280.0080.02317.62
5.5.270.0070.04617.60
5.5.260.0080.04117.52
5.5.250.0080.04117.47
5.5.240.0160.03617.17
5.5.230.0030.01013.91
5.5.220.0060.00614.29
5.5.210.0110.00414.19
5.5.200.0060.00614.42
5.5.190.0090.00614.19
5.5.180.0040.01113.85
5.5.170.0120.00414.05
5.5.160.0100.00614.31
5.5.150.0030.01014.23
5.5.140.0060.00914.50
5.5.130.0100.00314.38
5.5.120.0000.01514.30
5.5.110.0070.00714.14
5.5.100.0000.01214.47
5.5.90.0000.01214.41
5.5.80.0130.00013.88
5.5.70.0000.01514.18
5.5.60.0030.01314.21
5.5.50.0070.01014.46
5.5.40.0120.00614.56
5.5.30.0060.00914.55
5.5.20.0070.01014.47
5.5.10.0030.00914.07
5.5.00.0030.00614.33

preferences:
35.05 ms | 401 KiB | 5 Q