3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() {}} $foo = new Foo(); $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { method_exists($foo, 'bar'); } echo (microtime(true) - $start) . "\n";

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.00.0070.03918.94
7.1.70.0030.04617.18
7.1.60.0070.09219.08
7.1.50.0100.08517.01
7.1.00.0030.12022.36
7.0.200.0000.04816.82
7.0.140.0070.12022.17
7.0.100.0530.11320.06
7.0.90.0500.12319.86
7.0.80.0500.11320.02
7.0.70.0030.09719.94
7.0.60.0070.08319.99
7.0.50.0030.09720.21
7.0.40.0070.12720.11
7.0.30.0170.10720.15
7.0.20.0070.11720.04
7.0.10.0100.09720.09
7.0.00.0030.12320.05
5.6.280.0130.27721.14
5.6.250.0130.24020.77
5.6.240.0030.23320.67
5.6.230.0100.22020.57
5.6.220.0170.22020.62
5.6.210.0100.23320.46
5.6.200.0070.21721.03
5.6.190.0170.23021.14
5.6.180.0100.24021.08
5.6.170.0030.25321.09
5.6.160.0200.21721.02
5.6.150.0130.20321.13
5.6.140.0070.18721.08
5.6.130.0170.22720.96
5.6.120.0070.23021.05
5.6.110.0130.25021.08
5.6.100.0170.22321.03
5.6.90.0100.20721.07
5.6.80.0070.21020.50
5.6.70.0030.19320.41
5.6.60.0100.24320.55
5.6.50.0130.24020.40
5.6.40.0070.23320.40
5.6.30.0000.23720.41
5.6.20.0030.21020.45
5.6.10.0000.18720.47
5.6.00.0070.18320.52
5.5.380.0070.26020.41
5.5.370.0030.22320.51
5.5.360.0070.23020.44
5.5.350.0100.23020.43
5.5.340.0000.24320.91
5.5.330.0170.22020.76
5.5.320.0130.23720.90
5.5.310.0170.22320.63
5.5.300.0170.21720.64
5.5.290.0000.25320.93
5.5.280.0070.24320.93
5.5.270.0070.23020.88
5.5.260.0100.25720.80
5.5.250.0070.24020.68
5.5.240.0070.21720.19
5.5.230.0030.24020.30
5.5.220.0070.23320.12
5.5.210.0100.22720.25
5.5.200.0130.23020.24
5.5.190.0070.23320.18
5.5.180.0070.20020.23
5.5.160.0070.17320.25
5.5.150.0170.24320.15
5.5.140.0170.21020.11
5.5.130.0030.19319.99
5.5.120.0030.18020.24
5.5.110.0070.19720.15
5.5.100.0000.19319.98
5.5.90.0000.20020.17
5.5.80.0030.18020.16
5.5.70.0070.17720.12
5.5.60.0070.19020.06
5.5.50.0130.16720.08
5.5.40.0030.23020.06
5.5.30.0130.24720.14
5.5.20.0030.25320.11
5.5.10.0070.23020.05
5.5.00.0070.23320.04
5.4.450.0000.23319.54
5.4.440.0100.24319.49
5.4.430.0070.17719.54
5.4.420.0070.22019.47
5.4.410.0170.19319.33
5.4.400.0100.22019.01
5.4.390.0030.27719.22
5.4.380.0100.23718.88
5.4.370.0070.21319.09
5.4.360.0130.20719.03
5.4.350.0130.24318.92
5.4.340.0100.22719.13
5.4.320.0030.17719.04
5.4.310.0070.20319.05
5.4.300.0030.21319.03
5.4.290.0030.23019.18
5.4.280.0070.17719.22
5.4.270.0070.22319.22
5.4.260.0000.18718.95
5.4.250.0000.19318.89
5.4.240.0030.18019.12
5.4.230.0030.18018.84
5.4.220.0000.21319.15
5.4.210.0030.22319.03
5.4.200.0030.15019.21
5.4.190.0070.22719.02
5.4.180.0100.21719.12
5.4.170.0130.24018.89
5.4.160.0000.25019.14
5.4.150.0230.18019.11
5.4.140.0030.19716.40
5.4.130.0100.22716.34
5.4.120.0470.17316.36
5.4.110.0070.22716.48
5.4.100.0030.23016.51
5.4.90.0070.20716.28
5.4.80.0130.24316.32
5.4.70.0130.21016.53
5.4.60.0000.25016.40
5.4.50.0030.17716.44
5.4.40.0100.20316.53
5.4.30.0030.21016.41
5.4.20.0100.19016.30
5.4.10.0000.19316.51
5.4.00.0030.24315.57
5.3.290.0100.16714.80
5.3.280.0070.21314.73
5.3.270.0030.26014.64
5.3.260.0030.24014.53
5.3.250.0070.31014.58
5.3.240.0070.23014.66
5.3.230.0100.27014.63
5.3.220.0070.27714.52
5.3.210.0070.28314.63
5.3.200.0000.24314.51
5.3.190.0070.30014.70
5.3.180.0070.28014.70
5.3.170.0130.24314.50
5.3.160.0100.23714.54
5.3.150.0100.23714.48
5.3.140.0130.26314.61
5.3.130.0070.27014.58
5.3.120.0130.29014.64
5.3.110.0070.29314.66
5.3.100.0070.26714.17
5.3.90.0000.27314.13
5.3.80.0100.26713.98
5.3.70.0030.25713.93
5.3.60.0130.27014.07
5.3.50.0100.26313.96
5.3.40.0030.27014.06
5.3.30.0100.28014.04
5.3.20.0030.29013.62
5.3.10.0000.25313.71
5.3.00.0100.26013.75
5.2.170.0030.22011.20
5.2.160.0030.25711.18
5.2.150.0130.24011.17
5.2.140.0070.23011.19
5.2.130.0030.26011.03
5.2.120.0030.24311.16
5.2.110.0030.24011.02
5.2.100.0000.24711.00
5.2.90.0130.25011.04
5.2.80.0000.25711.01
5.2.70.0070.25311.18
5.2.60.0070.24711.07
5.2.50.0030.24710.93
5.2.40.0070.23711.02
5.2.30.0100.23310.85
5.2.20.0100.24011.07
5.2.10.0070.24010.93
5.2.00.0070.23310.77
5.1.60.0070.21310.08
5.1.50.0000.25010.04
5.1.40.0070.24010.04
5.1.30.0030.24010.27
5.1.20.0070.26010.27
5.1.10.0130.2339.90
5.1.00.0130.21710.07
5.0.50.0070.3408.86
5.0.40.0070.3338.86
5.0.30.0070.3708.86
5.0.20.0030.3438.86
5.0.10.0100.3478.86
5.0.00.0030.3778.86
4.4.90.0070.0208.86
4.4.80.0070.0338.86
4.4.70.0030.0308.86
4.4.60.0000.0378.86
4.4.50.0030.0378.86
4.4.40.0030.0538.86
4.4.30.0030.0378.86
4.4.20.0030.0338.86
4.4.10.0100.0208.86
4.4.00.0070.0308.86
4.3.110.0000.0338.86
4.3.100.0030.0338.86
4.3.90.0070.0338.86
4.3.80.0070.0408.86
4.3.70.0000.0378.86
4.3.60.0030.0338.86
4.3.50.0030.0378.86
4.3.40.0000.0508.86
4.3.30.0030.0308.86
4.3.20.0000.0338.86
4.3.10.0030.0338.86
4.3.00.0000.0378.86

preferences:
37.86 ms | 401 KiB | 5 Q