3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Token { const EOF = -1; const TEXT = 0; const BLOCK_START = 1; const OUTPUT_START = 2; const BLOCK_END = 3; const OUTPUT_END = 4; const NAME = 5; const NUMBER = 6; const STRING = 7; const OPERATOR = 8; const CONSTANT = 9; } $token = new Token; print "everything is ok!";

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.00418.18
8.3.50.0130.00521.98
8.3.40.0090.00618.70
8.3.30.0110.00418.54
8.3.20.0030.00618.47
8.3.10.0080.00019.16
8.3.00.0000.00721.77
8.2.180.0150.00018.38
8.2.170.0070.01322.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.11
8.2.110.0070.00320.39
8.2.100.0000.01117.84
8.2.90.0060.00319.10
8.2.80.0000.00717.97
8.2.70.0040.00417.63
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0000.00819.42
8.2.20.0040.00417.49
8.2.10.0040.00417.54
8.2.00.0030.00717.48
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0040.00422.47
8.1.230.0080.00321.03
8.1.220.0080.00018.77
8.1.210.0000.00818.90
8.1.200.0000.00817.22
8.1.190.0000.00717.29
8.1.180.0080.00018.10
8.1.170.0000.00818.51
8.1.160.0000.00718.74
8.1.150.0000.00718.50
8.1.140.0040.00417.44
8.1.130.0030.00317.72
8.1.120.0000.00717.39
8.1.110.0040.00417.35
8.1.100.0070.00017.37
8.1.90.0040.00417.34
8.1.80.0040.00417.43
8.1.70.0040.00417.38
8.1.60.0030.00617.50
8.1.50.0050.00217.30
8.1.40.0000.00717.34
8.1.30.0040.00417.59
8.1.20.0000.00917.57
8.1.10.0040.00417.45
8.1.00.0040.00417.43
8.0.300.0060.00319.98
8.0.290.0050.00217.04
8.0.280.0070.00018.48
8.0.270.0040.00417.34
8.0.260.0030.00316.82
8.0.250.0030.00616.90
8.0.240.0080.00016.78
8.0.230.0030.00316.77
8.0.220.0000.00716.81
8.0.210.0030.00316.73
8.0.200.0000.00716.84
8.0.190.0000.00816.78
8.0.180.0000.00716.88
8.0.170.0040.00416.72
8.0.160.0040.00416.85
8.0.150.0040.00316.67
8.0.140.0030.00516.77
8.0.130.0030.00313.24
8.0.120.0080.00016.68
8.0.110.0040.00416.76
8.0.100.0080.00016.80
8.0.90.0040.00416.64
8.0.80.0120.00316.76
8.0.70.0070.00016.84
8.0.60.0030.00516.73
8.0.50.0000.00716.71
8.0.30.0150.01016.98
8.0.20.0140.00917.40
8.0.10.0040.00416.89
8.0.00.0100.01216.57
7.4.330.0050.00016.76
7.4.320.0000.00716.44
7.4.300.0000.00716.42
7.4.290.0040.00416.52
7.4.280.0000.00616.51
7.4.270.0060.00016.50
7.4.260.0050.00013.14
7.4.250.0000.00716.50
7.4.240.0070.00016.54
7.4.230.0070.00016.61
7.4.220.0130.00616.25
7.4.210.0100.00916.49
7.4.200.0080.00016.53
7.4.190.0030.00316.38
7.4.160.0160.00016.22
7.4.150.0170.00017.40
7.4.140.0100.00817.86
7.4.130.0100.00616.50
7.4.120.0070.01016.34
7.4.110.0120.00616.40
7.4.100.0170.00716.33
7.4.90.0090.01216.51
7.4.80.0100.00719.39
7.4.70.0090.01516.33
7.4.60.0000.01716.39
7.4.50.0050.00316.41
7.4.40.0050.00822.77
7.4.30.0100.00716.53
7.4.00.0080.00814.62
7.3.330.0030.00512.95
7.3.320.0020.00212.98
7.3.310.0070.00016.05
7.3.300.0070.00016.04
7.3.290.0060.00816.11
7.3.280.0080.01016.17
7.3.270.0090.00917.40
7.3.260.0140.00618.24
7.3.250.0070.01016.21
7.3.240.0100.00716.36
7.3.230.0110.01116.39
7.3.210.0070.01016.41
7.3.200.0110.00719.39
7.3.190.0100.01016.56
7.3.180.0070.00716.19
7.3.170.0150.00016.43
7.3.160.0060.01016.19
7.3.120.0100.00414.64
7.3.110.0130.00614.46
7.3.100.0120.00314.52
7.3.90.0000.00814.41
7.3.80.0050.00514.52
7.3.70.0030.01014.75
7.3.60.0000.01514.54
7.3.50.0100.00314.62
7.3.40.0030.00714.71
7.3.30.0000.00914.61
7.3.20.0040.01216.55
7.3.10.0100.00316.62
7.3.00.0060.00316.32
7.2.330.0110.00716.53
7.2.320.0170.00016.66
7.2.310.0130.00316.32
7.2.300.0130.00716.41
7.2.290.0120.00816.55
7.2.250.0060.01014.82
7.2.240.0060.01015.02
7.2.230.0060.00914.70
7.2.220.0070.00714.88
7.2.210.0100.00314.74
7.2.200.0030.01214.56
7.2.190.0090.00614.95
7.2.180.0000.01215.07
7.2.170.0070.01115.02
7.2.00.0200.00618.92
7.1.330.0000.01515.54
7.1.320.0030.01015.70
7.1.310.0040.01115.69
7.1.300.0030.01015.56
7.1.290.0000.00915.34
7.1.280.0060.00615.78
7.1.270.0040.00715.56
7.1.260.0030.00615.81
7.1.200.0000.01415.65
7.1.100.0030.01018.03
7.1.70.0070.00716.75
7.1.60.0070.01019.40
7.1.50.0040.01416.82
7.1.00.0030.03722.40
7.0.200.0020.00516.66
7.0.140.0070.07022.00
7.0.70.0000.04721.68
7.0.60.0030.06021.64
7.0.50.0030.04022.12
7.0.40.0000.06320.17
7.0.30.0030.04020.02
7.0.20.0100.03320.09
7.0.10.0000.05319.98
7.0.00.0000.04719.98
5.6.280.0100.07021.13
5.6.220.0000.04020.70
5.6.210.0000.04320.58
5.6.200.0100.04321.05
5.6.190.0000.05721.00
5.6.180.0070.04021.04
5.6.170.0030.03720.95
5.6.160.0000.04320.93
5.6.150.0000.03721.05
5.6.140.0000.03721.00
5.6.130.0000.03721.13
5.6.120.0030.04021.08
5.6.110.0100.02721.02
5.6.100.0030.07321.02
5.6.90.0000.05021.08
5.6.80.0030.03720.38
5.6.70.0030.03720.39
5.6.60.0030.03720.54
5.6.50.0070.03020.40
5.6.40.0000.03720.29
5.6.30.0000.03720.52
5.6.20.0100.04720.31
5.6.10.0070.07720.48
5.6.00.0030.06720.27
5.5.360.0030.03720.35
5.5.350.0030.03320.44
5.5.340.0030.04020.77
5.5.330.0000.03720.94
5.5.320.0030.04320.80
5.5.310.0000.03720.88
5.5.300.0000.03720.73
5.5.290.0030.04020.64
5.5.280.0030.04020.89
5.5.270.0030.06320.88
5.5.260.0000.04320.88
5.5.250.0070.03320.57
5.5.240.0000.04720.21
5.5.230.0030.07020.29
5.5.220.0000.04020.20
5.5.210.0030.03720.26
5.5.200.0000.04020.15
5.5.190.0070.04320.08
5.5.180.0070.07320.19
5.5.160.0000.04320.23
5.5.150.0070.08020.08
5.5.140.0000.06320.11
5.5.130.0200.06020.27
5.5.120.0000.05020.10
5.5.110.0130.08020.13
5.5.100.0070.05720.07
5.5.90.0030.05019.90
5.5.80.0000.08020.15
5.5.70.0030.07720.11
5.5.60.0070.03720.08
5.5.50.0000.06720.03
5.5.40.0030.05019.99
5.5.30.0030.07720.14
5.5.20.0070.05020.04
5.5.10.0100.07320.03
5.5.00.0100.07720.02
5.4.450.0070.03719.42
5.4.440.0000.03319.38
5.4.430.0030.04719.51
5.4.420.0030.06019.24
5.4.410.0000.04019.07
5.4.400.0000.04019.18
5.4.390.0070.03319.04
5.4.380.0030.03319.23
5.4.370.0000.03318.92
5.4.360.0030.04318.95
5.4.350.0000.03319.09
5.4.340.0100.03319.05
5.4.320.0070.07718.85
5.4.310.0030.07718.95
5.4.300.0070.07319.09
5.4.290.0130.06719.16
5.4.280.0000.04319.03
5.4.270.0000.07718.88
5.4.260.0030.07719.22
5.4.250.0030.05719.09
5.4.240.0000.05019.19
5.4.230.0000.04319.04
5.4.220.0130.05719.12
5.4.210.0000.05719.12
5.4.200.0000.08019.17
5.4.190.0070.07318.84
5.4.180.0070.07718.86
5.4.170.0000.08019.17
5.4.160.0030.07718.82
5.4.150.0000.08018.88
5.4.140.0100.07016.52
5.4.130.0070.06716.45
5.4.120.0100.04316.49
5.4.110.0070.07716.56
5.4.100.0000.06716.36
5.4.90.0100.05016.47
5.4.80.0070.05716.31
5.4.70.0070.07316.42
5.4.60.0000.07316.45
5.4.50.0130.06716.41
5.4.40.0030.04716.45
5.4.30.0000.07716.48
5.4.20.0100.04016.36
5.4.10.0130.04016.40
5.4.00.0030.06315.86
5.3.290.0000.06714.78
5.3.280.0030.07714.64
5.3.270.0070.07314.66
5.3.260.0000.06314.57
5.3.250.0030.08014.64
5.3.240.0100.07014.55
5.3.230.0030.07714.70
5.3.220.0070.06014.56
5.3.210.0030.08014.54
5.3.200.0000.07714.54
5.3.190.0030.08014.59
5.3.180.0070.05314.69
5.3.170.0000.07014.50
5.3.160.0030.08014.61
5.3.150.0030.05314.61
5.3.140.0030.05714.46
5.3.130.0100.07714.46
5.3.120.0000.06314.48
5.3.110.0000.06014.68
5.3.100.0070.05013.98
5.3.90.0030.06714.13
5.3.80.0030.07313.98
5.3.70.0030.06713.94
5.3.60.0000.06714.10
5.3.50.0030.06313.96
5.3.40.0100.06313.86
5.3.30.0030.07013.91
5.3.20.0000.07013.67
5.3.10.0030.07313.70
5.3.00.0100.05313.69
5.2.170.0030.05311.16
5.2.160.0000.04711.24
5.2.150.0030.06311.18
5.2.140.0030.04311.06
5.2.130.0000.03711.15
5.2.120.0030.05311.10
5.2.110.0030.04711.11
5.2.100.0030.05011.08
5.2.90.0000.04011.00
5.2.80.0000.05011.14
5.2.70.0000.06711.22
5.2.60.0000.05711.14
5.2.50.0030.05711.11
5.2.40.0100.05711.05
5.2.30.0030.06310.98
5.2.20.0070.04711.01
5.2.10.0000.06310.78
5.2.00.0030.05310.80
5.1.60.0000.05010.58
5.1.50.0000.05710.58
5.1.40.0030.05010.58
5.1.30.0000.05710.58
5.1.20.0030.05710.58
5.1.10.0030.05310.58
5.1.00.0070.05310.58
5.0.50.0030.03310.58
5.0.40.0030.04710.58
5.0.30.0070.05010.58
5.0.20.0030.02710.58
5.0.10.0000.04010.58
5.0.00.0030.05710.58
4.4.90.0070.03310.58
4.4.80.0070.03010.58
4.4.70.0000.02310.58
4.4.60.0030.02710.58
4.4.50.0030.02310.58
4.4.40.0000.05310.58
4.4.30.0000.03310.58
4.4.20.0070.03310.58
4.4.10.0030.03310.58
4.4.00.0070.04710.58
4.3.110.0030.03010.58
4.3.100.0070.02010.58
4.3.90.0000.03710.58
4.3.80.0000.04010.58
4.3.70.0030.03010.58
4.3.60.0000.02710.58
4.3.50.0000.02310.58
4.3.40.0030.04710.58
4.3.30.0000.03310.58
4.3.20.0000.03710.58
4.3.10.0030.03310.58
4.3.00.0000.03710.58

preferences:
50.73 ms | 401 KiB | 5 Q