3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function bar($x,$y){ return $x*$y; } } $s = microtime(true); $foo = new foo(); for($x = 0; $x < 10000; $x++ ){ call_user_func(array($foo, 'bar'), 10,20); } echo round(microtime(true) - $s,5)."\n"; $s = microtime(true); $foo = new foo(); $met = 'bar'; for($x = 0; $x < 10000; $x++ ){ $foo->$bar(10,20); } 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.0070.01416.41
7.3.00.0100.01016.16
7.2.130.0100.00616.85
7.2.120.0050.01316.64
7.2.110.0100.00916.69
7.2.100.0080.01116.63
7.2.90.0110.00616.86
7.2.80.0090.01116.63
7.2.70.0120.00716.77
7.2.60.0090.01016.78
7.2.50.0110.01116.69
7.2.40.0090.01316.95
7.2.30.0050.01416.98
7.2.20.0130.00316.73
7.2.10.0070.01316.90
7.2.00.0010.01217.70
7.1.250.0060.01115.59
7.1.240.0040.01115.57
7.1.230.0030.01015.40
7.1.220.0100.00315.57
7.1.210.0060.00915.65
7.1.200.0000.01515.28
7.1.190.0040.00715.80
7.1.180.0080.00815.52
7.1.170.0090.00915.52
7.1.160.0030.00915.43
7.1.150.0060.00915.59
7.1.140.0070.00715.92
7.1.130.0040.01115.87
7.1.120.0070.00715.84
7.1.110.0070.00715.87
7.1.100.0070.00715.98
7.1.90.0000.01015.79
7.1.80.0060.00915.83
7.1.70.0000.01716.61
7.1.60.0050.01717.52
7.1.50.0070.01425.40
7.1.40.0070.01015.52
7.1.30.0080.00815.86
7.1.20.0000.01215.77
7.1.10.0060.00915.81
7.1.00.0030.04419.02
7.0.330.0060.00615.30
7.0.320.0110.00315.37
7.0.310.0100.00315.18
7.0.300.0100.00315.00
7.0.290.0100.00715.40
7.0.280.0040.01115.50
7.0.270.0070.00715.54
7.0.260.0040.01115.37
7.0.250.0000.01415.37
7.0.240.0040.01115.32
7.0.230.0140.00315.53
7.0.220.0100.00615.55
7.0.210.0130.00315.37
7.0.200.0050.00516.20
7.0.190.0090.01215.43
7.0.180.0060.01015.54
7.0.170.0000.01515.25
7.0.160.0090.00615.22
7.0.150.0040.01215.38
7.0.140.0080.03818.55
7.0.130.0090.00315.38
7.0.120.0040.00715.50
7.0.110.0090.00915.21
7.0.100.0060.00815.12
7.0.90.0000.01315.40
7.0.80.0070.01115.52
7.0.70.0070.04018.40
7.0.60.0020.04818.52
7.0.50.0020.04218.80
7.0.40.0040.04916.75
7.0.30.0070.04816.82
7.0.20.0050.04616.64
7.0.10.0050.03516.76
7.0.00.0040.03216.64
5.6.380.0070.01014.61
5.6.370.0030.01914.41
5.6.360.0060.01614.08
5.6.350.0040.01414.05
5.6.340.0030.01414.09
5.6.330.0030.01614.48
5.6.320.0070.01014.41
5.6.310.0120.00914.17
5.6.300.0030.02014.51
5.6.290.0000.02314.18
5.6.280.0020.05017.66
5.6.270.0000.01814.18
5.6.260.0110.01114.22
5.6.250.0000.01714.64
5.6.240.0030.01614.30
5.6.230.0080.01114.66
5.6.220.0050.05617.51
5.6.210.0070.04017.47
5.6.200.0070.03917.66
5.6.190.0070.04817.93
5.6.180.0050.05217.73
5.6.170.0080.04017.58
5.6.160.0050.03217.81
5.6.150.0050.05517.72
5.6.140.0030.04117.64
5.6.130.0050.04417.70
5.6.120.0040.05817.69
5.6.110.0100.04717.62
5.6.100.0030.04417.68
5.6.90.0050.05417.78
5.6.80.0050.05117.38
5.6.70.0060.04117.27
5.6.60.0080.05617.38
5.6.50.0020.05117.39
5.6.40.0050.05017.34
5.6.30.0030.05317.15
5.6.20.0020.05117.31
5.6.10.0050.05117.52
5.6.00.0050.04917.50
5.5.380.0000.02111.18
5.5.370.0000.02111.18
5.5.360.0030.04915.86
5.5.350.0050.05115.86
5.5.340.0030.03716.04
5.5.330.0000.05316.04
5.5.320.0050.05416.03
5.5.310.0050.05516.06
5.5.300.0030.05216.07
5.5.290.0050.04916.13
5.5.280.0000.05916.00
5.5.270.0080.03316.12
5.5.260.0030.05616.00
5.5.250.0020.04115.96
5.5.240.0050.04915.66
5.5.230.0090.05115.74
5.5.220.0080.04615.69
5.5.210.0030.05415.71
5.5.200.0050.04815.59
5.5.190.0050.05015.72
5.5.180.0050.05315.70
5.5.170.0000.02011.18
5.5.160.0030.05215.71
5.5.150.0030.05015.66
5.5.140.0090.03315.68
5.5.130.0080.04615.70
5.5.120.0040.05315.68
5.5.110.0050.02915.63
5.5.100.0080.04615.62
5.5.90.0070.04815.65
5.5.80.0070.04215.62
5.5.70.0030.04815.73
5.5.60.0060.03915.63
5.5.50.0030.05015.60
5.5.40.0020.04715.73
5.5.30.0060.04815.66
5.5.20.0040.03915.64
5.5.10.0070.03115.61
5.5.00.0000.04915.63
5.4.450.0100.04715.30
5.4.440.0020.04315.30
5.4.430.0070.05015.27
5.4.420.0030.04015.28
5.4.410.0030.04815.28
5.4.400.0050.04115.16
5.4.390.0070.04615.21
5.4.380.0020.05315.21
5.4.370.0050.04915.14
5.4.360.0100.04715.05
5.4.350.0090.04115.22
5.4.340.0030.03715.10
5.4.330.0100.01011.18
5.4.320.0030.05415.09
5.4.310.0000.05815.09
5.4.300.0080.03815.11
5.4.290.0080.04515.18
5.4.280.0070.03515.13
5.4.270.0030.04815.09
5.4.260.0030.04415.07
5.4.250.0030.04015.04
5.4.240.0020.05115.20
5.4.230.0030.04015.13
5.4.220.0050.05015.13
5.4.210.0080.04615.10
5.4.200.0000.04415.05
5.4.190.0020.04115.19
5.4.180.0050.03015.22
5.4.170.0050.05215.13
5.4.160.0050.05315.09
5.4.150.0050.05015.18
5.4.140.0050.03213.87
5.4.130.0030.03313.79
5.4.120.0020.04713.86
5.4.110.0060.04513.77
5.4.100.0020.04313.79
5.4.90.0020.04813.83
5.4.80.0020.04613.73
5.4.70.0050.04813.82
5.4.60.0030.03813.83
5.4.50.0020.04913.79
5.4.40.0020.05013.78
5.4.30.0080.04513.87
5.4.20.0030.05213.79
5.4.10.0080.03813.84
5.4.00.0070.04413.48
5.3.290.0060.04812.95
5.3.280.0050.05212.90
5.3.270.0000.05212.91
5.3.260.0000.05512.92
5.3.250.0020.05012.95
5.3.240.0080.02712.90
5.3.230.0030.04712.90
5.3.220.0020.03212.92
5.3.210.0010.03912.89
5.3.200.0020.03912.89
5.3.190.0050.05212.86
5.3.180.0050.05012.93
5.3.170.0050.04312.93
5.3.160.0030.03512.86
5.3.150.0040.05112.87
5.3.140.0040.04912.89
5.3.130.0100.04412.86
5.3.120.0070.04712.88
5.3.110.0080.04712.86
5.3.100.0050.04812.62
5.3.90.0060.03812.65
5.3.80.0050.04912.58
5.3.70.0070.04812.64
5.3.60.0020.05512.58
5.3.50.0120.03812.61
5.3.40.0030.04912.57
5.3.30.0080.04512.49
5.3.20.0080.04312.50
5.3.10.0020.05012.49
5.3.00.0040.03712.37
5.2.170.0000.04911.72
5.2.160.0020.04511.72
5.2.150.0070.04511.72
5.2.140.0020.05111.72
5.2.130.0050.04611.72
5.2.120.0000.04911.72
5.2.110.0070.04611.72
5.2.100.0030.04911.72
5.2.90.0030.03211.72
5.2.80.0020.03211.72
5.2.70.0050.04211.72
5.2.60.0030.04511.72
5.2.50.0060.04111.72
5.2.40.0020.04811.72
5.2.30.0030.04511.72
5.2.20.0030.05011.72
5.2.10.0020.04211.72
5.2.00.0020.04711.72
5.1.60.0080.02911.72
5.1.50.0030.04311.72
5.1.40.0030.04111.72
5.1.30.0020.04711.72
5.1.20.0020.04411.72
5.1.10.0050.03511.72
5.1.00.0050.04111.72
5.0.50.0050.03111.72
5.0.40.0030.02911.72
5.0.30.0030.04711.72
5.0.20.0050.03811.72
5.0.10.0020.03911.72
5.0.00.0030.05211.72
4.4.90.0040.01311.72
4.4.80.0020.02011.72
4.4.70.0050.01711.72
4.4.60.0020.01811.72
4.4.50.0040.01711.72
4.4.40.0020.02111.72
4.4.30.0000.01911.72
4.4.20.0030.01711.72
4.4.10.0030.01711.72
4.4.00.0020.02511.72
4.3.110.0020.02211.72
4.3.100.0010.01811.72
4.3.90.0020.02011.72
4.3.80.0030.02311.72
4.3.70.0000.01511.72
4.3.60.0030.01711.72
4.3.50.0050.01511.72
4.3.40.0040.01811.72
4.3.30.0030.01811.72
4.3.20.0020.01811.72
4.3.10.0000.02211.72
4.3.00.0030.01711.72

preferences:
43.92 ms | 401 KiB | 5 Q