3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function foo(); } class C implements I { public static function foo() {echo __CLASS__;} } var_dump (new C instanceof I); $c = new C; $c->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.60.0030.01218.55
8.3.50.0110.00417.95
8.3.40.0060.00918.71
8.3.30.0070.00718.71
8.3.20.0070.00019.16
8.3.10.0030.00523.64
8.3.00.0080.00020.64
8.2.180.0140.00718.01
8.2.170.0120.00322.96
8.2.160.0150.00320.87
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0000.00719.82
8.2.120.0050.00326.35
8.2.110.0040.00421.12
8.2.100.0090.00317.78
8.2.90.0120.00017.84
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0040.00417.97
8.2.50.0040.00418.10
8.2.40.0000.00719.05
8.2.30.0080.00019.19
8.2.20.0040.00418.05
8.2.10.0000.00718.00
8.2.00.0040.00417.57
8.1.280.0140.00725.92
8.1.270.0080.00020.52
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.05
8.1.230.0040.00822.63
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00617.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0050.00318.79
8.1.150.0040.00418.68
8.1.140.0040.00422.18
8.1.130.0000.00722.04
8.1.120.0000.00717.41
8.1.110.0000.00717.26
8.1.100.0000.00817.39
8.1.90.0000.00817.41
8.1.80.0040.00417.35
8.1.70.0040.00417.39
8.1.60.0000.00817.40
8.1.50.0040.00417.43
8.1.40.0030.00917.45
8.1.30.0000.00817.44
8.1.20.0040.00417.54
8.1.10.0000.00817.36
8.1.00.0040.00417.28
8.0.300.0040.00419.77
8.0.290.0040.00416.75
8.0.280.0030.00318.33
8.0.270.0070.00017.17
8.0.260.0050.00318.39
8.0.250.0000.00716.98
8.0.240.0050.00316.92
8.0.230.0030.00316.96
8.0.220.0000.00716.75
8.0.210.0030.00316.79
8.0.200.0060.00016.95
8.0.190.0070.00016.84
8.0.180.0000.00716.92
8.0.170.0000.00816.89
8.0.160.0000.00716.79
8.0.150.0070.00416.88
8.0.140.0030.00316.86
8.0.130.0030.00313.32
8.0.120.0050.00316.87
8.0.110.0000.00816.91
8.0.100.0040.00416.75
8.0.90.0040.00416.90
8.0.80.0050.01316.84
8.0.70.0040.00416.88
8.0.60.0040.00416.90
8.0.50.0000.00816.87
8.0.30.0080.01017.04
8.0.20.0040.01517.40
8.0.10.0050.00217.04
8.0.00.0110.00716.55
7.4.330.0060.00015.55
7.4.320.0030.00316.58
7.4.300.0070.00016.44
7.4.290.0060.00316.37
7.4.280.0090.00016.52
7.4.270.0030.00316.42
7.4.260.0030.00316.48
7.4.250.0080.00016.41
7.4.240.0070.00016.43
7.4.230.0040.00416.38
7.4.220.0040.00416.62
7.4.210.0050.01016.53
7.4.200.0000.00716.64
7.4.160.0090.01016.47
7.4.140.0110.00917.86
7.4.130.0100.01016.59
7.4.120.0110.00616.44
7.4.110.0240.01016.47
7.4.100.0080.00816.19
7.4.90.0130.00416.26
7.4.80.0120.00619.39
7.4.70.0030.01416.38
7.4.60.0120.00516.34
7.4.50.0100.00016.54
7.4.40.0070.01016.58
7.3.330.0050.00013.25
7.3.320.0060.00013.22
7.3.310.0040.00416.29
7.3.300.0080.00016.15
7.3.290.0050.00316.25
7.3.280.0110.00516.27
7.3.260.0070.01216.40
7.3.240.0080.00916.39
7.3.230.0070.01116.45
7.3.210.0110.00716.29
7.3.200.0210.00016.33
7.3.190.0180.00016.21
7.3.180.0130.00316.44
7.3.170.0070.01016.33
7.3.160.0100.00716.35
7.2.330.0180.00716.49
7.2.320.0120.01216.48
7.2.310.0170.00016.22
7.2.300.0130.00316.65
7.2.290.0140.00316.36

preferences:
37.51 ms | 401 KiB | 5 Q