3v4l.org

run code in 300+ PHP versions simultaneously
<?hh class Foo { public function bar(string $foo) { echo $foo; } } (new Foo())->bar('blah'); (new Foo())->bar(new \stdClass());

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.0150.00618.30
8.3.50.0200.01121.08
8.3.40.0140.00718.68
8.3.30.0070.00720.14
8.3.20.0050.00220.07
8.3.10.0070.00021.89
8.3.00.0050.00222.45
8.2.180.0060.01518.04
8.2.170.0100.00322.96
8.2.160.0130.00022.13
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0100.00726.16
8.2.120.0040.00421.02
8.2.110.0040.00422.07
8.2.100.0040.00717.78
8.2.90.0080.00019.22
8.2.80.0040.00419.19
8.2.70.0090.00017.38
8.2.60.0050.00317.80
8.2.50.0050.00318.07
8.2.40.0000.00818.15
8.2.30.0040.00417.88
8.2.20.0000.00717.45
8.2.10.0040.00417.64
8.2.00.0070.00017.45
8.1.280.0070.01125.92
8.1.270.0080.00023.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0040.00424.02
8.1.230.0070.00319.02
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0030.00617.41
8.1.180.0060.00418.10
8.1.170.0040.00418.46
8.1.160.0030.00318.75
8.1.150.0070.00018.48
8.1.140.0040.00417.21
8.1.130.0030.00317.71
8.1.120.0000.00717.36
8.1.110.0040.00417.36
8.1.100.0000.00717.19
8.1.90.0000.00717.21
8.1.80.0000.00717.28
8.1.70.0030.00317.27
8.1.60.0060.00317.39
8.1.50.0050.00217.36
8.1.40.0040.00417.37
8.1.30.0040.00417.51
8.1.20.0000.00917.41
8.1.10.0040.00417.43
8.1.00.0000.00717.43
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0030.00318.39
8.0.270.0040.00417.13
8.0.260.0000.00616.73
8.0.250.0030.00316.73
8.0.240.0030.00516.70
8.0.230.0030.00316.78
8.0.220.0030.00316.71
8.0.210.0070.00016.63
8.0.200.0030.00316.80
8.0.190.0040.00416.79
8.0.180.0070.00016.71
8.0.170.0000.00716.73
8.0.160.0030.00316.71
8.0.150.0000.00716.81
8.0.140.0050.00316.71
8.0.130.0030.00613.30
8.0.120.0030.00516.62
8.0.110.0000.00716.69
8.0.100.0000.00716.63
8.0.90.0000.00716.55
8.0.80.0060.00916.69
8.0.70.0000.00716.82
8.0.60.0040.00416.78
8.0.50.0000.00816.80
8.0.30.0030.01517.06
8.0.20.0050.01417.40
8.0.10.0050.00216.95
8.0.00.0080.00816.58
7.4.330.0050.00015.00
7.4.320.0030.00316.36
7.4.300.0000.00616.43
7.4.290.0080.00016.34
7.4.280.0070.00016.35
7.4.270.0070.00016.37
7.4.260.0070.00013.14
7.4.250.0040.00416.43
7.4.240.0030.00316.44
7.4.230.0060.00016.27
7.4.220.0040.01516.32
7.4.210.0110.00616.41
7.4.200.0070.00016.52
7.4.190.0000.00716.36
7.4.160.0060.01016.36
7.4.150.0080.00917.40
7.4.140.0070.01317.86
7.4.130.0120.00516.33
7.4.120.0050.01216.56
7.4.110.0060.01116.45
7.4.100.0070.01016.48
7.4.90.0140.00416.44
7.4.80.0130.00919.39
7.4.70.0090.00816.38
7.4.60.0030.01716.32
7.4.50.0040.00416.21
7.4.40.0100.00722.77
7.4.30.0110.00916.21
7.3.330.0000.00513.09
7.3.320.0000.00613.07
7.3.310.0030.00316.21
7.3.300.0000.00616.11
7.3.290.0060.00616.07
7.3.280.0090.01116.13
7.3.270.0030.01617.40
7.3.260.0210.00016.12
7.3.250.0110.00816.34
7.3.240.0130.00316.05
7.3.230.0060.01116.39
7.3.210.0110.00616.18
7.3.200.0120.01219.39
7.3.190.0030.01416.30
7.3.180.0070.00816.18
7.3.170.0040.01116.46
7.3.160.0080.00816.45
7.2.330.0070.01016.54
7.2.320.0070.01016.59
7.2.310.0170.00016.57
7.2.300.0030.01316.59
7.2.290.0130.00316.29
5.4.320.0080.03512.45
5.4.310.0070.03612.45
5.4.300.0090.05012.45
5.4.290.0080.05212.45
5.4.280.0100.04512.33
5.4.270.0070.04212.33
5.4.260.0070.04412.33
5.4.250.0080.04312.33
5.4.240.0070.04312.33
5.4.230.0040.04612.32
5.4.220.0090.04512.32
5.4.210.0090.04212.32
5.4.200.0060.04512.32
5.4.190.0130.04212.32
5.4.180.0070.04312.32
5.4.170.0090.04112.33
5.4.160.0090.03912.33
5.4.150.0080.04112.32
5.4.140.0090.04612.01
5.4.130.0070.04411.99
5.4.120.0080.04211.95
5.4.110.0060.04311.95
5.4.100.0040.04211.95
5.4.90.0070.03811.95
5.4.80.0050.03811.95
5.4.70.0070.03511.95
5.4.60.0100.03211.95
5.4.50.0080.03811.95
5.4.40.0090.03211.93
5.4.30.0070.03511.93
5.4.20.0070.03411.94
5.4.10.0060.03511.93
5.4.00.0060.03811.42
5.3.290.0100.04712.80
5.3.280.0070.03812.71
5.3.270.0080.04112.72
5.3.260.0050.04212.72
5.3.250.0070.03712.72
5.3.240.0040.04212.72
5.3.230.0060.03912.71
5.3.220.0070.03912.68
5.3.210.0080.03812.68
5.3.200.0070.03612.68
5.3.190.0070.03712.68
5.3.180.0060.03812.67
5.3.170.0070.03712.67
5.3.160.0050.03812.67
5.3.150.0090.03812.67
5.3.140.0100.04212.66
5.3.130.0120.04312.66
5.3.120.0070.04412.66
5.3.110.0060.04712.66
5.3.100.0090.03612.12
5.3.90.0090.03412.08
5.3.80.0060.03912.07
5.3.70.0070.03612.08
5.3.60.0070.03512.06
5.3.50.0100.03712.00
5.3.40.0080.03412.00
5.3.30.0100.03211.94
5.3.20.0080.04111.71
5.3.10.0090.03611.68
5.3.00.0070.04011.66

preferences:
37.1 ms | 401 KiB | 5 Q