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(sprintf('is_a time: %s', 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.4.10.0190.13115.04
7.4.00.0100.12815.10
7.3.130.0170.20614.87
7.3.120.0170.19514.79
7.3.110.0170.19614.77
7.3.100.0160.15514.49
7.3.90.0120.15214.79
7.3.80.0200.14214.74
7.3.70.0220.18414.52
7.3.60.0100.23314.76
7.3.50.0290.14514.84
7.3.40.0130.15714.86
7.3.30.0180.15114.71
7.3.20.0170.14616.54
7.3.10.0220.14016.58
7.3.00.0160.15216.73
7.2.260.0160.19115.13
7.2.250.0220.21815.07
7.2.240.0130.27415.14
7.2.230.0070.18215.00
7.2.220.0110.17015.11
7.2.210.0130.17714.94
7.2.200.0230.23714.88
7.2.190.0100.17514.97
7.2.180.0170.18414.98
7.2.170.0160.15914.98
7.2.160.0140.19315.03
7.2.150.0150.19817.03
7.2.140.0150.17916.88
7.2.130.0190.16116.91
7.2.120.0130.19217.00
7.2.110.0220.16416.60
7.2.100.0100.18516.93
7.2.90.0130.19816.89
7.2.80.0150.00712.79
7.2.70.0150.00012.79
7.2.60.0200.17216.96
7.2.50.0140.07716.85
7.2.40.0100.18716.82
7.2.30.0130.17916.89
7.2.20.0270.17516.86
7.2.10.0200.16716.98
7.2.00.0120.15517.87
7.1.330.0380.25615.56
7.1.320.0190.20915.84
7.1.310.0130.26715.87
7.1.300.0070.22815.68
7.1.290.0140.27015.53
7.1.280.0170.20615.48
7.1.270.0170.21215.84
7.1.260.0070.21815.51
7.1.250.0100.21615.87
7.1.240.0100.22515.73
7.1.230.0100.23915.73
7.1.220.0100.21315.69
7.1.210.0130.21315.70
7.1.200.0100.24015.73
7.1.190.0200.21815.62
7.1.180.0180.22915.79
7.1.170.0130.23815.91
7.1.160.0170.23315.78
7.1.150.0100.23815.63
7.1.140.0000.26715.78
7.1.130.0180.22215.95
7.1.120.0160.21715.66
7.1.110.0100.22215.88
7.1.100.0050.16916.96
7.1.90.0190.23115.66
7.1.80.0190.19915.83
7.1.70.0080.17016.49
7.1.60.0120.19717.55
7.1.50.0120.21216.09
7.1.40.0170.23115.84
7.1.30.0150.23915.75
7.1.20.0160.21815.55
7.1.10.0200.21815.73
7.1.00.0150.22819.14
7.0.330.0100.20415.35
7.0.320.0130.22515.39
7.0.310.0200.22615.26
7.0.300.0170.25515.28
7.0.290.0100.21715.33
7.0.280.0190.19915.30
7.0.270.0070.21415.42
7.0.260.0160.20615.44
7.0.250.0160.22415.40
7.0.240.0130.24515.47
7.0.230.0100.21215.33
7.0.220.0290.20515.36
7.0.210.0070.21715.37
7.0.200.0450.16015.04
7.0.190.0140.21815.49
7.0.180.0130.22115.20
7.0.170.0130.21815.48
7.0.160.0090.23415.43
7.0.150.0040.28215.56
7.0.140.0120.26818.72
7.0.130.0200.25915.40
7.0.120.0120.26315.44
7.0.110.0070.21615.28
7.0.100.0100.24815.50
7.0.90.0060.18017.60
7.0.80.0200.18317.70
7.0.70.0020.23617.77
7.0.60.0120.19517.73
7.0.50.0080.22817.89
7.0.40.0120.19216.83
7.0.30.0020.21516.67
7.0.20.0080.25216.63
7.0.10.0100.20516.86
7.0.00.0050.24416.80
5.6.400.0130.44614.49
5.6.390.0140.41814.50
5.6.380.0090.44214.09
5.6.370.0100.41913.89
5.6.360.0170.43714.43
5.6.350.0200.42414.54
5.6.340.0190.44614.52
5.6.330.0160.44014.50
5.6.320.0140.41914.65
5.6.310.0200.40714.61
5.6.300.0130.44814.24
5.6.290.0130.47914.24
5.6.280.0070.41017.60
5.6.270.0130.45714.24
5.6.260.0030.47014.38
5.6.250.0130.46114.41
5.6.240.0100.35917.47
5.6.230.0070.43317.45
5.6.220.0100.39717.53
5.6.210.0080.42417.57
5.6.200.0030.37517.61
5.6.190.0080.39317.70
5.6.180.0080.41317.71
5.6.170.0020.40717.75
5.6.160.0030.36717.77
5.6.150.0080.39417.67
5.6.140.0070.37117.61
5.6.130.0080.39517.47
5.6.120.0050.39117.69
5.6.110.0080.39417.69
5.6.100.0100.39917.54
5.6.90.0050.44917.61
5.6.80.0050.38017.16
5.6.70.0070.34017.38
5.6.60.0120.45917.21
5.6.50.0070.37817.20
5.6.40.0070.40917.43
5.6.30.0070.34317.26
5.6.20.0080.36817.23
5.6.10.0000.37317.25
5.6.00.0050.38417.23
5.5.380.0070.38117.38
5.5.370.0050.43117.37
5.5.360.0080.41917.35
5.5.350.0050.41517.33
5.5.340.0100.44117.39
5.5.330.0080.39817.64
5.5.320.0020.38917.58
5.5.310.0120.40217.45
5.5.300.0080.39817.57
5.5.290.0150.39517.53
5.5.280.0020.43317.38
5.5.270.0080.37817.51
5.5.260.0050.37417.57
5.5.250.0080.38317.37
5.5.240.0080.45817.23
5.5.230.0080.43717.14
5.5.220.0150.45017.23
5.5.210.0080.39217.29
5.5.200.0030.37517.32
5.5.190.0100.40717.13
5.5.180.0080.42217.19
5.5.170.0030.46614.29
5.5.160.0120.40117.21
5.5.150.0090.44117.02
5.5.140.0100.42417.08
5.5.130.0120.40117.24
5.5.120.0130.42417.08
5.5.110.0110.36117.12
5.5.100.0100.39117.06
5.5.90.0070.34517.15
5.5.80.0050.39016.98
5.5.70.0110.37317.19
5.5.60.0070.38317.19
5.5.50.0110.39717.16
5.5.40.0080.39517.22
5.5.30.0070.37217.17
5.5.20.0060.39317.00
5.5.10.0030.38916.92
5.5.00.0050.47316.96
5.4.450.0120.42216.16
5.4.440.0070.43016.01
5.4.430.0150.42715.99
5.4.420.0030.43016.12
5.4.410.0050.43516.01
5.4.400.0070.43115.94
5.4.390.0070.45815.91
5.4.380.0050.47715.91
5.4.370.0070.43615.85
5.4.360.0060.41515.88
5.4.350.0050.39415.99
5.4.340.0050.40315.92
5.4.330.0070.52112.79
5.4.320.0050.40815.91
5.4.310.0070.36815.92
5.4.300.0070.41115.92
5.4.290.0080.39515.91
5.4.280.0100.38215.92
5.4.270.0120.36515.92
5.4.260.0090.39615.96
5.4.250.0050.39115.97
5.4.240.0110.37715.96
5.4.230.0080.38416.00
5.4.220.0120.38816.01
5.4.210.0050.41315.87
5.4.200.0080.40415.84
5.4.190.0080.41815.96
5.4.180.0070.38915.97
5.4.170.0070.39515.96
5.4.160.0030.39715.95
5.4.150.0050.42415.95
5.4.140.0070.36014.60
5.4.130.0050.37414.62
5.4.120.0030.45914.61
5.4.110.0020.40514.61
5.4.100.0080.42214.68
5.4.90.0200.48814.56
5.4.80.0050.46214.60
5.4.70.0080.39014.64
5.4.60.0040.37814.58
5.4.50.0120.42414.55
5.4.40.0110.38614.64
5.4.30.0030.38514.63
5.4.20.0070.37214.63
5.4.10.0100.38914.58
5.4.00.0050.36214.35

preferences:
38.54 ms | 401 KiB | 5 Q