3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { const BAR = "bar"; } $f = new Foo(); var_dump($f::BAR); var_dump($f::class);

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.5.30.0090.00817.47
8.5.20.0070.01019.45
8.5.10.0040.00518.39
8.5.00.0140.00819.72
8.4.180.0100.01325.50
8.4.170.0120.01223.83
8.4.160.0150.00823.66
8.4.150.0030.00014.05
8.4.140.0130.00817.39
8.4.130.0100.01017.64
8.4.120.0110.00920.41
8.4.110.0100.01118.47
8.4.100.0140.00718.62
8.4.90.0130.00918.86
8.4.80.0090.01020.64
8.4.70.0110.00418.13
8.4.60.0110.00918.82
8.4.50.0110.00918.61
8.4.40.0000.00817.64
8.4.30.0030.00620.41
8.4.20.0040.02119.43
8.4.10.0000.01919.42
8.3.300.0150.00620.70
8.3.290.0100.01020.69
8.3.280.0130.00718.24
8.3.270.0140.00616.45
8.3.260.0060.00216.60
8.3.250.0090.00718.98
8.3.240.0040.00416.17
8.3.230.0070.00718.78
8.3.220.0110.00419.05
8.3.210.0090.00916.48
8.3.200.0090.01016.50
8.3.190.0110.00716.93
8.3.180.0110.00816.97
8.3.170.0110.00718.81
8.3.160.0090.00916.94
8.3.150.0110.00817.29
8.3.140.0040.01516.47
8.3.130.0060.00318.38
8.3.120.0070.00318.64
8.3.110.0030.00620.94
8.3.100.0090.00016.63
8.3.90.0040.00426.77
8.3.80.0040.00417.97
8.3.70.0100.00716.58
8.3.60.0060.01018.30
8.3.50.0170.00319.62
8.3.40.0030.01021.64
8.3.30.0070.00718.58
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.300.0090.01117.88
8.2.290.0080.00620.50
8.2.280.0090.01018.21
8.2.270.0170.00017.30
8.2.260.0080.00016.75
8.2.250.0180.00016.08
8.2.240.0000.00919.09
8.2.230.0100.00022.58
8.2.220.0030.00624.06
8.2.210.0110.00326.77
8.2.200.0080.00316.63
8.2.190.0070.01416.58
8.2.180.0120.00925.92
8.2.170.0100.01318.82
8.2.160.0100.01022.96
8.2.150.0020.00525.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00319.36
8.2.110.0060.00319.11
8.2.100.0090.00317.78
8.2.90.0040.00417.50
8.2.80.0040.00418.84
8.2.70.0030.00517.50
8.2.60.0080.00017.92
8.2.50.0090.00318.07
8.2.40.0000.00818.16
8.2.30.0040.00418.09
8.2.20.0040.00417.97
8.2.10.0060.00319.25
8.2.00.0050.00219.30
8.1.340.0100.01019.45
8.1.330.0100.00621.77
8.1.320.0110.00816.16
8.1.310.0080.00018.45
8.1.300.0090.00618.22
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.90
8.1.230.0060.00621.03
8.1.220.0030.00718.64
8.1.210.0000.00819.10
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0030.00518.54
8.1.160.0040.00418.89
8.1.150.0000.00718.63
8.1.140.0040.00420.72
8.1.130.0050.00318.80
8.1.120.0000.00817.45
8.1.110.0000.00817.45
8.1.100.0000.00717.46
8.1.90.0050.00217.46
8.1.80.0050.00517.48
8.1.70.0030.00317.46
8.1.60.0000.00717.57
8.1.50.0030.00517.50
8.1.40.0000.00717.45
8.1.30.0050.00317.48
8.1.20.0000.00817.54
8.1.10.0030.00517.53
8.1.00.0040.00417.40
8.0.300.0030.00319.98
8.0.290.0070.00016.75
8.0.280.0000.00718.41
8.0.270.0070.00018.03
8.0.260.0030.00318.56
8.0.250.0000.00716.88
8.0.240.0000.00616.95
8.0.230.0000.00716.82
8.0.220.0070.00016.87
8.0.210.0070.00016.87
8.0.200.0030.00616.93
8.0.190.0000.00716.95
8.0.180.0000.00716.95
8.0.170.0050.00316.79
8.0.160.0080.00016.87
8.0.150.0040.00416.71
8.0.140.0050.00316.80
8.0.130.0030.00313.30
8.0.120.0050.00516.75
8.0.110.0050.00216.77
8.0.100.0020.00516.81
8.0.90.0030.00516.75
8.0.80.0050.00216.85
8.0.70.0050.00216.75
8.0.60.0020.00516.87
8.0.50.0030.00516.83
8.0.30.0020.00516.74
8.0.20.0040.00416.77
8.0.10.0020.00516.94
8.0.00.0030.00416.92
7.4.330.0000.00515.55
7.4.320.0060.00016.46
7.4.300.0000.00716.43
7.4.290.0080.00316.45
7.4.280.0080.00016.32
7.4.270.0050.00216.38
7.4.260.0030.00313.15
7.4.250.0030.00316.33
7.4.240.0020.00516.46
7.4.230.0040.00316.42
7.4.220.0030.00516.41
7.4.210.0030.00416.36
7.4.200.0030.00516.46
7.4.190.0030.00416.47
7.4.180.0060.00216.26
7.4.160.0010.00616.28
7.4.150.0060.00116.49
7.4.140.0030.00416.41
7.4.130.0050.00216.15
7.4.120.0040.00316.19
7.4.110.0060.00116.34
7.4.100.0020.00516.51
7.4.90.0010.00616.27
7.4.80.0020.00516.22
7.4.70.0040.00216.33
7.4.60.0010.00616.29
7.4.50.0060.00116.25
7.4.40.0020.00516.04
7.4.30.0050.00216.29
7.4.20.0020.00516.08
7.4.10.0040.00216.14
7.4.00.0020.00516.29
7.3.330.0000.00716.03
7.3.320.0000.00513.19
7.3.310.0050.00316.26
7.3.300.0010.00616.23
7.3.290.0060.00116.20
7.3.280.0010.00516.22
7.3.270.0000.00716.18
7.3.260.0040.00216.19
7.3.250.0020.00516.19
7.3.240.0020.00416.19
7.3.230.0020.00416.20
7.3.220.0020.00416.18
7.3.210.0000.00716.17
7.3.200.0020.00516.11
7.3.190.0050.00216.20
7.3.180.0020.00516.11
7.3.170.0040.00216.14
7.3.160.0010.00616.08
7.3.150.0050.00216.12
7.3.140.0010.00616.08
7.3.130.0020.00516.12
7.3.120.0010.00616.08
7.3.110.0040.00316.02
7.3.100.0000.00716.08
7.3.90.0030.00316.39
7.3.80.0040.00316.11
7.3.70.0060.00116.19
7.3.60.0050.00216.18
7.3.50.0040.00216.21
7.3.40.0030.00316.15
7.3.30.0010.00616.13
7.3.20.0050.00218.00
7.3.10.0050.00218.04
7.3.00.0010.00617.93

preferences:
37.26 ms | 475 KiB | 5 Q