3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class A {} class B {} function foo(): A { try { return new B; } } foo();

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.40.0140.00718.65
8.3.30.0070.00718.97
8.3.20.0030.00520.21
8.3.10.0040.00422.09
8.3.00.0000.00819.13
8.2.170.0140.00022.96
8.2.160.0130.00720.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.95
8.2.110.0050.00522.25
8.2.100.0040.00818.09
8.2.90.0000.00819.10
8.2.80.0050.00517.97
8.2.70.0060.00617.50
8.2.60.0050.00317.93
8.2.50.0040.00718.07
8.2.40.0020.00518.09
8.2.30.0060.00317.92
8.2.20.0040.00417.58
8.2.10.0050.00317.97
8.2.00.0050.00217.43
8.1.270.0050.00523.98
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00722.73
8.1.230.0040.00717.68
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.00
8.1.190.0040.00417.11
8.1.180.0030.00618.10
8.1.170.0030.00618.46
8.1.160.0050.00221.93
8.1.150.0030.00318.80
8.1.140.0040.00417.38
8.1.130.0030.00317.70
8.1.120.0000.00817.26
8.1.110.0040.00417.36
8.1.100.0040.00417.32
8.1.90.0030.00317.33
8.1.80.0000.00717.15
8.1.70.0000.00717.30
8.1.60.0040.00417.40
8.1.50.0040.00417.38
8.1.40.0050.00217.25
8.1.30.0030.00617.30
8.1.20.0040.00417.51
8.1.10.0030.00617.44
8.1.00.0040.00417.26
8.0.300.0000.00818.77
8.0.290.0000.00716.58
8.0.280.0070.00018.36
8.0.270.0030.00317.25
8.0.260.0080.00017.09
8.0.250.0060.00016.84
8.0.240.0000.00616.82
8.0.230.0000.00716.71
8.0.220.0070.00016.72
8.0.210.0000.00716.71
8.0.200.0000.01016.70
8.0.190.0080.00016.85
8.0.180.0080.00016.73
8.0.170.0060.00316.77
8.0.160.0070.00016.80
8.0.150.0040.00416.72
8.0.140.0000.00716.58
8.0.130.0030.00313.43
8.0.120.0000.00816.74
8.0.110.0050.00216.74
8.0.100.0040.00416.64
8.0.90.0000.00716.62
8.0.80.0060.00916.75
8.0.70.0080.00016.77
8.0.60.0000.00716.57
8.0.50.0070.00016.64
8.0.30.0150.00717.05
8.0.20.0130.00817.40
8.0.10.0050.00216.94
8.0.00.0120.00516.70
7.4.330.0000.00615.00
7.4.320.0000.00716.38
7.4.300.0030.00316.29
7.4.290.0030.00316.46
7.4.280.0070.00016.27
7.4.270.0000.00716.41
7.4.260.0070.00016.24
7.4.250.0070.00016.40
7.4.240.0050.00216.46
7.4.230.0000.00716.46
7.4.220.0060.01816.39
7.4.210.0120.00316.48
7.4.200.0030.00516.52
7.4.160.0090.00916.29
7.4.150.0030.01517.40
7.4.140.0120.00817.86
7.4.130.0090.00716.49
7.4.120.0080.01116.41
7.4.110.0090.00916.32
7.4.100.0140.00716.48
7.4.90.0070.01016.32
7.4.80.0080.00919.39
7.4.70.0060.01516.48
7.4.60.0120.00316.45
7.4.50.0080.00016.14
7.4.40.0060.01016.44
7.4.30.0180.00316.27
7.3.330.0030.00212.99
7.3.320.0020.00213.14
7.3.310.0030.00316.22
7.3.300.0000.00616.10
7.3.290.0050.00816.08
7.3.280.0020.01316.08
7.3.270.0080.01517.40
7.3.260.0100.01016.50
7.3.250.0060.01416.18
7.3.240.0090.00916.46
7.3.230.0150.00316.41
7.3.210.0100.00616.18
7.3.200.0160.00319.39
7.3.190.0070.01416.19
7.3.180.0080.00816.43
7.3.170.0030.01416.27
7.3.160.0150.00616.52
7.2.330.0090.00916.61
7.2.320.0060.01216.52
7.2.310.0030.01316.42
7.2.300.0060.00916.49
7.2.290.0030.01716.44
5.4.340.0670.00019.05
5.4.320.0050.03712.45
5.4.310.0080.03812.45
5.4.300.0060.03712.45
5.4.290.0090.03712.45
5.4.280.0090.03612.35
5.4.270.0080.04412.35
5.4.260.0080.03812.35
5.4.250.0100.04812.34
5.4.240.0090.03912.34
5.4.230.0070.03712.34
5.4.220.0050.03712.34
5.4.210.0070.03612.34
5.4.200.0120.04712.34
5.4.190.0140.04312.34
5.4.180.0100.04712.33
5.4.170.0090.04012.35
5.4.160.0070.03512.34
5.4.150.0040.04012.34
5.4.140.0040.04012.02
5.4.130.0060.04312.01
5.4.120.0020.03911.97
5.4.110.0040.03711.96
5.4.100.0080.03411.96
5.4.90.0090.03511.96
5.4.80.0090.03711.96
5.4.70.0080.03511.96
5.4.60.0100.03911.96
5.4.50.0110.04111.96
5.4.40.0060.03511.95
5.4.30.0060.03511.95
5.4.20.0110.03311.95
5.4.10.0060.03711.95
5.4.00.0070.04111.44

preferences:
39.02 ms | 400 KiB | 5 Q