3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function foo(); } class C implements I { public function foo() {echo __CLASS__;} public static function s() {echo __CLASS__;} } var_dump (new C instanceof I); $c = new C; $c::s();

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.0000.01416.38
8.3.60.0100.01018.33
8.3.50.0090.00618.06
8.3.40.0120.00918.68
8.3.30.0180.00018.59
8.3.20.0040.00419.23
8.3.10.0040.00421.82
8.3.00.0040.00420.55
8.2.190.0120.00316.58
8.2.180.0150.00018.16
8.2.170.0140.00022.96
8.2.160.0110.00420.67
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00819.77
8.2.120.0040.00426.35
8.2.110.0080.00419.31
8.2.100.0110.00017.91
8.2.90.0000.00818.19
8.2.80.0060.00318.22
8.2.70.0060.00317.50
8.2.60.0000.00818.16
8.2.50.0080.00018.10
8.2.40.0050.00319.33
8.2.30.0000.00919.12
8.2.20.0040.00417.99
8.2.10.0000.00718.11
8.2.00.0030.00517.55
8.1.280.0080.00625.92
8.1.270.0030.00620.64
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0030.00720.88
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0040.00417.36
8.1.190.0050.00317.00
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0040.00418.88
8.1.150.0040.00418.75
8.1.140.0030.00522.14
8.1.130.0030.00322.11
8.1.120.0000.00717.34
8.1.110.0030.00417.43
8.1.100.0050.00217.43
8.1.90.0040.00317.44
8.1.80.0030.00517.43
8.1.70.0030.00317.34
8.1.60.0000.00817.58
8.1.50.0080.00017.43
8.1.40.0000.00917.55
8.1.30.0050.00317.66
8.1.20.0030.00617.67
8.1.10.0000.00917.61
8.1.00.0000.00817.48
8.0.300.0040.00419.99
8.0.290.0000.00816.63
8.0.280.0050.00218.43
8.0.270.0000.00817.20
8.0.260.0070.00318.36
8.0.250.0000.00816.91
8.0.240.0030.00516.97
8.0.230.0000.00716.96
8.0.220.0030.00316.78
8.0.210.0000.00816.77
8.0.200.0060.00016.93
8.0.190.0070.00016.96
8.0.180.0030.00616.88
8.0.170.0050.00316.95
8.0.160.0040.00416.84
8.0.150.0040.00416.74
8.0.140.0040.00416.85
8.0.130.0000.00613.32
8.0.120.0050.00316.83
8.0.110.0070.00016.82
8.0.100.0080.00016.87
8.0.90.0040.00416.87
8.0.80.0050.01016.79
8.0.70.0040.00416.84
8.0.60.0000.00816.89
8.0.50.0040.00416.86
8.0.30.0060.01117.26
8.0.20.0070.01417.40
8.0.10.0030.00516.89
8.0.00.0090.00916.72
7.4.330.0000.00615.55
7.4.320.0000.00616.51
7.4.300.0060.00016.57
7.4.290.0080.00016.61
7.4.280.0090.00016.58
7.4.270.0040.00416.52
7.4.260.0030.00316.38
7.4.250.0000.00716.55
7.4.240.0040.00416.64
7.4.230.0030.00316.50
7.4.220.0000.00716.33
7.4.210.0060.01016.61
7.4.200.0030.00316.54
7.4.160.0130.00516.62
7.4.140.0150.00517.86
7.4.130.0110.00716.61
7.4.120.0070.01216.48
7.4.110.0060.01216.31
7.4.100.0090.00916.55
7.4.90.0100.00716.52
7.4.80.0090.01219.39
7.4.70.0100.01016.34
7.4.60.0100.01316.60
7.4.50.0070.01016.53
7.4.40.0190.00516.41
7.3.330.0020.00213.31
7.3.320.0000.00513.24
7.3.310.0080.00016.34
7.3.300.0030.00316.32
7.3.290.0000.00716.19
7.3.280.0100.00616.29
7.3.260.0120.01016.51
7.3.240.0110.00716.40
7.3.230.0080.00816.29
7.3.210.0070.01016.52
7.3.200.0080.00816.51
7.3.190.0030.01416.46
7.3.180.0090.01516.23
7.3.170.0070.01016.61
7.3.160.0100.01016.51
7.2.330.0170.00016.31
7.2.320.0100.01316.68
7.2.310.0100.00616.41
7.2.300.0180.00016.72
7.2.290.0070.01016.67

preferences:
56.35 ms | 401 KiB | 5 Q