3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface TestInterface {} class TestClass implements TestInterface {} $time = time(); for ($i = 0; $i < 1000000; $i++) { is_a('TestClass', 'TestInterface', true); } var_dump('is_a time: ' . time() - $time);

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)
7.2.60.0100.10317.07
7.2.00.0100.12618.81
7.1.200.0030.11315.88
7.1.100.0030.17918.12
7.1.70.0230.09917.34
7.1.60.0100.16019.50
7.1.50.0170.16634.68
7.1.00.0100.24022.43
7.0.200.0770.11014.75
7.0.140.0000.23321.98
7.0.100.0070.20321.80
7.0.90.0070.22021.77
7.0.80.0030.18721.69
7.0.70.0070.19021.76
7.0.60.0100.19021.66
7.0.50.0070.20022.16
7.0.40.0030.19320.05
7.0.30.0100.18020.00
7.0.20.0170.16320.13
7.0.10.0030.15720.04
7.0.00.0030.21720.11
5.6.280.0000.35721.13
5.6.250.0030.28020.72
5.6.240.0070.31720.68
5.6.230.0100.33020.59
5.6.220.0100.32020.66
5.6.210.0100.32020.64
5.6.200.0170.31721.11
5.6.190.0000.33321.06
5.6.180.0070.30720.93
5.6.170.0130.34021.07
5.6.160.0100.31721.05
5.6.150.0070.40021.04
5.6.140.0070.26021.03
5.6.130.0070.25021.00
5.6.120.0000.35320.97
5.6.110.0030.30721.10
5.6.100.0100.35020.92
5.6.90.0030.34020.92
5.6.80.0030.29320.44
5.6.70.0070.27320.55
5.6.60.0000.32720.32
5.6.50.0600.22720.55
5.6.40.0000.32320.41
5.6.30.0100.28720.46
5.6.20.0100.31720.29
5.6.10.0030.30720.52
5.6.00.0000.25020.29
5.5.380.0130.32020.56
5.5.370.0030.32020.57
5.5.360.0130.33020.33
5.5.350.0070.33720.39
5.5.340.0070.27720.92
5.5.330.0100.34320.88
5.5.320.0030.27020.80
5.5.310.0070.32320.77
5.5.300.0000.33320.75
5.5.290.0130.32020.77
5.5.280.0070.32720.79
5.5.270.0130.35320.63
5.5.260.0130.32020.82
5.5.250.0030.27320.57
5.5.240.0000.30320.21
5.5.230.0030.33020.20
5.5.220.0070.32020.29
5.5.210.0070.34720.02
5.5.200.0070.33720.26
5.5.190.0030.28020.22
5.5.180.0030.25020.15
5.5.160.0000.30720.15
5.5.150.0000.32719.99
5.5.140.0130.32320.24
5.5.130.0100.31020.27
5.5.120.0100.29720.20
5.5.110.0100.31021.08
5.5.100.0070.33020.17
5.5.90.0070.30720.11
5.5.80.0070.33019.97
5.5.70.0030.33020.14
5.5.60.0000.34720.12
5.5.50.0000.33020.14
5.5.40.0100.32719.96
5.5.30.0130.30320.07
5.5.20.0100.31320.02
5.5.10.0070.31320.04
5.5.00.0130.35320.12
5.4.450.0100.34019.55
5.4.440.0070.32719.48
5.4.430.0030.32719.16
5.4.420.0100.32719.20
5.4.410.0000.30719.32
5.4.400.0070.32019.21
5.4.390.0030.32018.87
5.4.380.0000.32019.04
5.4.370.0030.27719.12
5.4.360.0000.28719.12
5.4.350.0130.24719.13
5.4.340.0030.30719.05
5.4.320.0030.34019.05
5.4.310.0000.25719.12
5.4.300.0000.28019.03
5.4.290.0070.31719.23
5.4.280.0100.31719.12
5.4.270.0100.30319.02
5.4.260.0000.34018.94
5.4.250.0200.30019.14
5.4.240.0000.29019.13
5.4.230.0070.31019.11
5.4.220.0100.26719.24
5.4.210.0070.28018.90
5.4.200.0030.30719.03
5.4.190.0100.33719.02
5.4.180.0030.33318.89
5.4.170.0070.29719.07
5.4.160.0130.30019.18
5.4.150.0070.26319.21
5.4.140.0170.25016.37
5.4.130.0030.33716.43
5.4.120.0030.28316.45
5.4.110.0070.29716.47
5.4.100.0030.30716.39
5.4.90.0000.25716.43
5.4.80.0030.29016.49
5.4.70.0030.24716.49
5.4.60.0030.25316.31
5.4.50.0030.26316.46
5.4.40.0000.26316.45
5.4.30.0000.27316.36
5.4.20.0070.24016.29
5.4.10.0030.31716.42
5.4.00.0170.22015.70

preferences:
32.04 ms | 400 KiB | 5 Q