3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function bar($x,$y){ return $x*$y; } public static function met1(){ $met = $bar; //return static:: } } $s = microtime(true); for($x = 0; $x < 10000; $x++ ){ $a = is_callable(array('foo', 'bar')); } echo round(microtime(true) - $s,5)."\n"; $s = microtime(true); for($x = 0; $x < 10000; $x++ ){ $a = method_exists('foo', 'bar'); } echo round(microtime(true) - $s,5)."\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.3.10.0060.00716.70
7.3.00.0070.00816.56
7.2.130.0050.01016.81
7.2.120.0070.00716.88
7.2.110.0030.01016.88
7.2.100.0060.01016.82
7.2.90.0050.01116.97
7.2.80.0060.00816.90
7.2.70.0050.01016.89
7.2.60.0050.01116.84
7.2.50.0030.01016.87
7.2.40.0030.01116.67
7.2.30.0040.00816.90
7.2.20.0030.01216.80
7.2.10.0020.01216.90
7.2.00.0040.00817.57
7.1.250.0070.00915.64
7.1.240.0000.01315.74
7.1.230.0030.01315.51
7.1.220.0080.01115.46
7.1.210.0040.01115.58
7.1.200.0030.01215.64
7.1.190.0000.02115.75
7.1.180.0060.01315.66
7.1.170.0000.01815.77
7.1.160.0070.01015.35
7.1.150.0030.01015.77
7.1.140.0040.01915.58
7.1.130.0030.01015.84
7.1.120.0000.01715.95
7.1.110.0000.01015.68
7.1.100.0100.00715.86
7.1.90.0030.01415.44
7.1.80.0030.01315.57
7.1.70.0050.00616.61
7.1.60.0090.01217.48
7.1.50.0070.01516.34
7.1.40.0060.01015.72
7.1.30.0090.00615.81
7.1.20.0040.01415.86
7.1.10.0000.01715.50
7.1.00.0010.04818.94
7.0.330.0100.01015.38
7.0.320.0030.01415.01
7.0.310.0040.01115.34
7.0.300.0060.01315.54
7.0.290.0060.00915.44
7.0.280.0040.01515.27
7.0.270.0030.01215.41
7.0.260.0080.01215.33
7.0.250.0090.00914.96
7.0.240.0000.01715.41
7.0.230.0000.02015.25
7.0.220.0070.01115.25
7.0.210.0000.01515.11
7.0.200.0100.00516.04
7.0.190.0030.01415.35
7.0.180.0030.01515.39
7.0.170.0080.00615.40
7.0.160.0030.01315.30
7.0.150.0070.01115.33
7.0.140.0030.04718.69
7.0.130.0090.00315.47
7.0.120.0030.01315.45
7.0.110.0030.01515.31
7.0.100.0100.02517.73
7.0.90.0070.03117.64
7.0.80.0050.02517.61
7.0.70.0080.04917.65
7.0.60.0150.02217.72
7.0.50.0030.02917.85
7.0.40.0050.02316.75
7.0.30.0050.02516.73
7.0.20.0050.02316.73
7.0.10.0050.03116.71
7.0.00.0020.02716.67
5.6.380.0070.01613.93
5.6.370.0030.01914.52
5.6.360.0040.01814.20
5.6.350.0090.01214.11
5.6.340.0070.02414.39
5.6.330.0070.01714.16
5.6.320.0150.01214.16
5.6.310.0090.01514.66
5.6.300.0040.02114.15
5.6.290.0100.01313.83
5.6.280.0060.04517.78
5.6.270.0030.02114.30
5.6.260.0030.02014.39
5.6.250.0070.03117.28
5.6.240.0050.03417.31
5.6.230.0020.03217.37
5.6.220.0100.04617.21
5.6.210.0110.03117.38
5.6.200.0070.02517.52
5.6.190.0030.03317.57
5.6.180.0050.02917.66
5.6.170.0070.02717.44
5.6.160.0000.03217.55
5.6.150.0080.02517.58
5.6.140.0100.02317.68
5.6.130.0130.02717.54
5.6.120.0030.03217.62
5.6.110.0070.05617.71
5.6.100.0050.05917.55
5.6.90.0060.03317.58
5.6.80.0090.02417.20
5.6.70.0080.04517.24
5.6.60.0130.04817.38
5.6.50.0030.04617.24
5.6.40.0030.05117.15
5.6.30.0050.05217.22
5.6.20.0070.05017.20
5.6.10.0050.05317.24
5.6.00.0050.04917.17
5.5.380.0030.03115.80
5.5.370.0100.02615.89
5.5.360.0050.03815.88
5.5.350.0030.03215.82
5.5.340.0020.03116.04
5.5.330.0020.03315.98
5.5.320.0030.02915.95
5.5.310.0070.02915.96
5.5.300.0050.02815.87
5.5.290.0020.02915.92
5.5.280.0020.03416.01
5.5.270.0070.04515.96
5.5.260.0130.04815.83
5.5.250.0060.03415.83
5.5.240.0050.03415.55
5.5.230.0080.03815.57
5.5.220.0080.04315.67
5.5.210.0080.04815.59
5.5.200.0050.05115.56
5.5.190.0030.04715.61
5.5.180.0070.05115.57
5.5.170.0060.01610.95
5.5.160.0080.03615.68
5.5.150.0100.04815.49
5.5.140.0070.05015.52
5.5.130.0080.04515.55
5.5.120.0100.04815.51
5.5.110.0030.03415.55
5.5.100.0030.04715.53
5.5.90.0020.03215.53
5.5.80.0080.02715.52
5.5.70.0020.06015.52
5.5.60.0070.05015.43
5.5.50.0050.03215.45
5.5.40.0100.04515.55
5.5.30.0060.03615.69
5.5.20.0050.03915.58
5.5.10.0030.05515.47
5.5.00.0050.05215.46
5.4.450.0030.03215.17
5.4.440.0050.03015.36
5.4.430.0050.03815.17
5.4.420.0030.05315.25
5.4.410.0020.03415.14
5.4.400.0080.04015.09
5.4.390.0030.03815.18
5.4.380.0000.04015.03
5.4.370.0020.05315.05
5.4.360.0020.04315.01
5.4.350.0100.02715.08
5.4.340.0190.03415.10
5.4.330.0000.02310.90
5.4.320.0030.05315.00
5.4.310.0050.04515.24
5.4.300.0050.05315.09
5.4.290.0050.04214.95
5.4.280.0070.03115.01
5.4.270.0080.03115.17
5.4.260.0050.05015.02
5.4.250.0080.04714.99
5.4.240.0070.04515.04
5.4.230.0020.03715.03
5.4.220.0050.04514.93
5.4.210.0080.03915.04
5.4.200.0050.06215.03
5.4.190.0070.03114.93
5.4.180.0030.04015.05
5.4.170.0000.03814.97
5.4.160.0050.03414.90
5.4.150.0020.03915.00
5.4.140.0020.05613.71
5.4.130.0030.04313.64
5.4.120.0070.03313.70
5.4.110.0030.04513.70
5.4.100.0050.03513.65
5.4.90.0070.04213.71
5.4.80.0050.03313.65
5.4.70.0080.03313.76
5.4.60.0050.04113.57
5.4.50.0050.03313.72
5.4.40.0100.04313.72
5.4.30.0020.05013.77
5.4.20.0020.04813.79
5.4.10.0030.05313.63
5.4.00.0070.04813.42
5.3.290.0050.05012.79
5.3.280.0000.04312.81
5.3.270.0070.04812.76
5.3.260.0100.04712.75
5.3.250.0030.04912.81
5.3.240.0070.04812.75
5.3.230.0000.05312.81
5.3.220.0080.05712.74
5.3.210.0150.04612.74
5.3.200.0020.03812.80
5.3.190.0060.05112.79
5.3.180.0070.03812.80
5.3.170.0050.03612.74
5.3.160.0030.04212.74
5.3.150.0100.03612.79
5.3.140.0080.03512.75
5.3.130.0030.03312.75
5.3.120.0030.04812.72
5.3.110.0100.03412.79
5.3.100.0200.02812.48
5.3.90.0000.03612.46
5.3.80.0030.03512.49
5.3.70.0030.03312.46
5.3.60.0050.04912.45
5.3.50.0120.04412.38
5.3.40.0020.04812.43
5.3.30.0050.05512.37
5.3.20.0050.04412.27
5.3.10.0050.04812.31
5.3.00.0050.04812.32
5.2.170.0080.02511.52
5.2.160.0000.02911.52
5.2.150.0020.04711.52
5.2.140.0000.04011.52
5.2.130.0050.02811.52
5.2.120.0030.04711.52
5.2.110.0050.04311.52
5.2.100.0030.04711.52
5.2.90.0020.04211.52
5.2.80.0080.03311.52
5.2.70.0050.04611.52
5.2.60.0020.04711.52
5.2.50.0070.04211.52
5.2.40.0020.04911.52
5.2.30.0020.03711.52
5.2.20.0030.04011.52
5.2.10.0060.02411.52
5.2.00.0030.04311.52
5.1.60.0030.02411.52
5.1.50.0080.03711.52
5.1.40.0020.03511.52
5.1.30.0020.03511.52
5.1.20.0020.04111.52
5.1.10.0030.04011.52
5.1.00.0010.04211.52
5.0.50.0030.02911.52
5.0.40.0000.04511.52
5.0.30.0070.04611.52
5.0.20.0050.03811.52
5.0.10.0050.02311.52
5.0.00.0080.04411.52
4.4.90.0040.01811.52
4.4.80.0020.01111.52
4.4.70.0000.01211.52
4.4.60.0030.01011.52
4.4.50.0030.01311.52
4.4.40.0000.01711.52
4.4.30.0020.01611.52
4.4.20.0030.01811.52
4.4.10.0020.01111.52
4.4.00.0030.02011.52
4.3.110.0030.01011.52
4.3.100.0010.01811.52
4.3.90.0030.01011.52
4.3.80.0030.02611.52
4.3.70.0050.01011.52
4.3.60.0030.01811.52
4.3.50.0020.01811.52
4.3.40.0020.01911.52
4.3.30.0000.02011.52
4.3.20.0060.01011.52
4.3.10.0040.01211.52
4.3.00.0020.01811.52

preferences:
39.21 ms | 401 KiB | 5 Q