3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} function foo_class() { return Foo::class; } $foo = new Foo(); var_dump($foo instanceof (foo_class()));

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.5.30.0090.00819.62
8.5.20.0080.00920.26
8.5.10.0080.01116.68
8.5.00.0070.00319.93
8.4.180.0090.01121.67
8.4.170.0120.01120.49
8.4.160.0120.01123.78
8.4.150.0080.00416.84
8.4.140.0110.01217.41
8.4.130.0100.00918.53
8.4.120.0030.00524.34
8.4.110.0140.00718.92
8.4.100.0090.01118.91
8.4.90.0100.01020.52
8.4.80.0100.00918.71
8.4.70.0060.00217.75
8.4.60.0050.00318.58
8.4.50.0120.00822.22
8.4.40.0160.00317.67
8.4.30.0100.01020.26
8.4.20.0160.00317.75
8.4.10.0000.00917.56
8.3.300.0130.00720.72
8.3.290.0090.01220.52
8.3.280.0140.00918.38
8.3.270.0120.00816.39
8.3.260.0070.00216.43
8.3.250.0090.01018.73
8.3.240.0140.00516.79
8.3.230.0120.00816.56
8.3.220.0040.00418.80
8.3.210.0060.01416.69
8.3.200.0050.00316.50
8.3.190.0120.01116.82
8.3.180.0090.01016.50
8.3.170.0030.00617.31
8.3.160.0160.00316.71
8.3.150.0070.01117.25
8.3.140.0040.01117.34
8.3.130.0080.00018.43
8.3.120.0090.00020.40
8.3.110.0080.00418.21
8.3.100.0080.00016.79
8.3.90.0090.00926.77
8.3.80.0030.00616.63
8.3.70.0040.01516.58
8.3.60.0140.00416.61
8.3.50.0070.01116.07
8.3.40.0060.01218.77
8.3.30.0040.01118.63
8.3.20.0070.00024.18
8.3.10.0050.00324.66
8.3.00.0000.00726.16
8.2.300.0120.00822.05
8.2.290.0060.00520.29
8.2.280.0060.01318.45
8.2.270.0040.01516.80
8.2.260.0040.01518.86
8.2.250.0040.01118.33
8.2.240.0030.00616.97
8.2.230.0100.00020.94
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0140.00716.63
8.2.180.0070.01025.92
8.2.170.0130.00718.86
8.2.160.0100.01022.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00419.95
8.2.110.0090.00022.20
8.2.100.0070.00320.52
8.1.340.0130.00917.55
8.1.330.0100.01021.91
8.1.320.0040.00416.20
8.1.310.0040.01118.48
8.1.300.0030.00616.28
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00018.52
8.1.230.0060.00618.64
8.0.30.0110.00716.80
8.0.20.0110.00816.84
8.0.10.0060.01216.94
8.0.00.0190.00316.97
7.4.160.0090.01216.38
7.4.150.0110.00716.47
7.4.140.0140.00616.39
7.4.130.0090.00916.16
7.4.120.0050.01216.30
7.4.110.0090.00916.11
7.4.100.0070.01016.45
7.4.90.0030.01316.18
7.4.80.0080.00916.33
7.4.70.0120.00916.20
7.4.60.0060.01316.20
7.4.50.0140.00616.16
7.4.40.0090.01016.19
7.4.30.0090.00616.15
7.4.20.0030.01816.37
7.4.10.0080.00916.31
7.4.00.0150.00316.16
7.3.270.0130.00316.11
7.3.260.0090.00616.17
7.3.250.0120.00616.11
7.3.240.0060.00916.11
7.3.230.0090.00916.13
7.3.220.0040.01716.01
7.3.210.0150.00016.14
7.3.200.0100.01016.17
7.3.190.0060.01216.08
7.3.180.0100.01016.04
7.3.170.0100.01016.18
7.3.160.0030.01316.09
7.3.150.0090.00516.07
7.3.140.0100.00616.21
7.3.130.0150.00316.19
7.3.120.0070.01116.07
7.3.110.0130.00316.09
7.3.100.0070.01116.04
7.3.90.0070.01116.30
7.3.80.0030.01316.09
7.3.70.0140.00716.27
7.3.60.0090.00616.20
7.3.50.0100.00716.25
7.3.40.0140.00616.12
7.3.30.0040.01116.21
7.3.20.0090.00616.20
7.3.10.0130.01016.25
7.3.00.0120.00416.11

preferences:
74.36 ms | 1054 KiB | 5 Q