3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class A {} class B {} function foo(): A { return new B; } var_dump( 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.70.0040.01116.38
8.3.60.0120.00618.40
8.3.50.0100.00921.93
8.3.40.0040.01518.68
8.3.30.0070.00718.87
8.3.20.0000.00720.30
8.3.10.0050.00320.43
8.3.00.0080.00019.38
8.2.180.0140.00416.50
8.2.170.0070.01122.96
8.2.160.0130.00020.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00422.23
8.2.110.0030.00619.27
8.2.100.0090.00319.32
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0080.00018.09
8.2.30.0060.00317.85
8.2.20.0040.00417.61
8.2.10.0040.00417.98
8.2.00.0040.00417.36
8.1.280.0170.00325.92
8.1.270.0080.00023.92
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0000.00822.74
8.1.230.0080.00319.16
8.1.220.0050.00217.74
8.1.210.0030.00618.77
8.1.200.0090.00016.86
8.1.190.0000.00817.11
8.1.180.0050.00218.10
8.1.170.0000.00918.57
8.1.160.0000.00721.98
8.1.150.0000.00718.74
8.1.140.0040.00417.32
8.1.130.0050.00217.67
8.1.120.0030.00517.32
8.1.110.0000.00817.37
8.1.100.0050.00217.34
8.1.90.0040.00417.23
8.1.80.0000.00717.37
8.1.70.0000.00717.32
8.1.60.0040.00417.36
8.1.50.0040.00417.39
8.1.40.0060.00317.27
8.1.30.0030.00517.32
8.1.20.0040.00417.51
8.1.10.0070.00017.33
8.1.00.0070.00017.34
8.0.300.0000.00718.77
8.0.290.0050.00216.63
8.0.280.0030.00318.37
8.0.270.0030.00317.25
8.0.260.0030.00317.19
8.0.250.0020.00516.80
8.0.240.0000.00616.69
8.0.230.0070.00016.80
8.0.220.0070.00016.70
8.0.210.0040.00416.72
8.0.200.0040.00416.70
8.0.190.0000.00716.82
8.0.180.0000.00716.80
8.0.170.0040.00416.80
8.0.160.0000.00716.88
8.0.150.0000.00816.70
8.0.140.0000.00716.69
8.0.130.0000.00613.43
8.0.120.0060.00316.63
8.0.110.0040.00416.60
8.0.100.0040.00416.76
8.0.90.0080.00016.76
8.0.80.0090.00616.73
8.0.70.0030.00516.59
8.0.60.0040.00416.79
8.0.50.0020.00516.73
8.0.30.0030.01516.97
8.0.20.0060.01617.40
8.0.10.0080.00016.92
8.0.00.0120.00516.70
7.4.330.0020.00215.00
7.4.320.0030.00316.37
7.4.300.0000.00616.40
7.4.290.0060.00316.45
7.4.280.0040.00416.46
7.4.270.0000.00716.33
7.4.260.0030.00516.45
7.4.250.0030.00316.34
7.4.240.0030.00316.42
7.4.230.0000.00716.18
7.4.220.0060.01216.53
7.4.210.0070.00716.57
7.4.200.0000.00716.35
7.4.160.0130.00316.61
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0100.01016.48
7.4.120.0090.00816.35
7.4.110.0120.00616.58
7.4.100.0030.01516.27
7.4.90.0100.00716.34
7.4.80.0090.00919.39
7.4.70.0100.00716.43
7.4.60.0060.00916.23
7.4.50.0000.00616.48
7.4.40.0130.00316.35
7.4.30.0160.00016.27
7.3.330.0060.00013.14
7.3.320.0050.00013.21
7.3.310.0030.00316.12
7.3.300.0000.00716.00
7.3.290.0030.01216.18
7.3.280.0050.01116.16
7.3.270.0040.01317.40
7.3.260.0100.01316.20
7.3.250.0110.00616.24
7.3.240.0120.00816.47
7.3.230.0120.01216.39
7.3.210.0120.00616.40
7.3.200.0070.01119.39
7.3.190.0090.01216.26
7.3.180.0030.01216.11
7.3.170.0100.01016.27
7.3.160.0090.00616.16
7.2.330.0040.01316.30
7.2.320.0130.00316.48
7.2.310.0090.00916.60
7.2.300.0070.01016.29
7.2.290.0090.00916.49
5.4.340.0600.00019.16
5.4.320.0060.03812.45
5.4.310.0060.04012.45
5.4.300.0090.04112.45
5.4.290.0050.04112.45
5.4.280.0070.03812.35
5.4.270.0100.03812.35
5.4.260.0090.03812.35
5.4.250.0070.03812.35
5.4.240.0070.04112.35
5.4.230.0070.04112.34
5.4.220.0080.03912.34
5.4.210.0070.04212.34
5.4.200.0050.04212.34
5.4.190.0050.03912.33
5.4.180.0070.04012.34
5.4.170.0070.03512.35
5.4.160.0090.04412.34
5.4.150.0090.04512.34
5.4.140.0070.04212.02
5.4.130.0060.03612.01
5.4.120.0070.03511.97
5.4.110.0060.03411.96
5.4.100.0080.04111.96
5.4.90.0060.04111.96
5.4.80.0070.03911.96
5.4.70.0070.03611.96
5.4.60.0060.03511.96
5.4.50.0090.04511.96
5.4.40.0060.03811.95
5.4.30.0050.03811.95
5.4.20.0070.03611.95
5.4.10.0060.04311.95
5.4.00.0070.03611.44

preferences:
41.91 ms | 401 KiB | 5 Q