3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callMe(...$args) {} function callMe2($args) {} $before = memory_get_usage(); $start = microtime(TRUE); for($i=0;$i<10000;$i++) { callMe(1,2,3,4,5); } echo 'callMe: '.(microtime(TRUE)-$start).' ('.(memory_get_usage()-$before).")\n"; $before = memory_get_usage(); $start = microtime(TRUE); for($i=0;$i<10000;$i++) { callMe(...array(1,2,3,4,5)); } echo 'callMe...: '.(microtime(TRUE)-$start).' ('.(memory_get_usage()-$before).")\n"; $before = memory_get_usage(); $start = microtime(TRUE); for($i=0;$i<10000;$i++) { callMe2(array(1,2,3,4,5)); } echo 'callMe2: '.(microtime(TRUE)-$start).' ('.(memory_get_usage()-$before).")\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.01019.24
7.1.70.0030.00617.09
7.1.60.0000.01217.29
7.1.50.0090.00617.05
7.1.00.0070.07722.28
7.0.200.0060.01316.79
7.0.140.0000.08022.21
7.0.60.0000.08721.86
7.0.50.0030.04317.98
7.0.40.0130.05720.29
7.0.30.0230.06020.25
7.0.20.0300.05720.19
7.0.10.0100.03720.12
7.0.00.0070.05020.30
5.6.280.0130.08320.91
5.6.210.0100.07720.52
5.6.200.0070.07018.15
5.6.190.0070.09320.42
5.6.180.0570.08320.64
5.6.170.0300.09020.55
5.6.160.0130.09720.55
5.6.150.0100.09718.23
5.6.140.0100.10018.24
5.6.130.0100.09318.12
5.6.120.0100.04721.01
5.6.110.0200.09321.00
5.6.100.0000.08720.99
5.6.90.0100.09720.98
5.6.80.0200.10020.37
5.5.350.4600.02720.42
5.5.340.0100.03717.99
5.5.330.0030.09020.27
5.5.320.0430.04720.31
5.5.310.0230.07020.35
5.5.300.0030.06317.98
5.5.290.0100.03717.92
5.5.280.0100.05020.87
5.5.270.0030.04320.76
5.5.260.0000.08320.86
5.5.250.0070.06320.68
5.5.240.0000.03320.27
5.4.450.4130.03719.55
5.4.440.0000.09019.53
5.4.430.1370.06719.38
5.4.420.3500.03319.37
5.4.410.4300.03719.17
5.4.400.4530.03319.18
5.4.390.3830.04319.26
5.4.380.3400.03318.95
5.4.370.3700.03719.06
5.4.360.3730.03318.95
5.4.350.3700.03319.05
5.4.340.3700.03718.95
5.4.320.3870.03318.97
5.4.310.3830.03719.14
5.4.300.4000.03319.22
5.4.290.3970.03319.15
5.4.280.3870.03718.93
5.4.270.3930.04019.17
5.4.260.3830.03719.09
5.4.250.3800.04019.26
5.4.240.4000.03019.07
5.4.230.3900.03018.94
5.4.220.3670.03018.97
5.4.210.3900.04018.98
5.4.200.3670.03319.22
5.4.190.0200.04719.19
5.4.180.0770.06719.05
5.4.170.4530.03319.16
5.4.160.3900.03318.97
5.4.150.4200.04019.21
5.4.140.4470.03716.36
5.4.130.4470.03716.38
5.4.120.4330.03316.50
5.4.110.4430.03716.22
5.4.100.1130.03716.46
5.4.90.0000.07716.35
5.4.80.5700.04016.38
5.4.70.3570.03016.24
5.4.60.3730.03316.29
5.4.50.3730.03716.53
5.4.40.3700.04016.32
5.4.30.4000.04316.51
5.4.20.3630.03716.29
5.4.10.3870.03716.32
5.4.00.3730.03715.95
5.3.290.3770.03714.58
5.3.280.3830.03714.73
5.3.270.4170.04714.67
5.3.260.4430.04014.64
5.3.250.4430.04714.77
5.3.240.4470.03714.61
5.3.230.4530.03714.63
5.3.220.4600.03014.59
5.3.210.4530.04014.49
5.3.200.4600.03314.60
5.3.190.0000.04014.48
5.3.180.1370.06014.58
5.3.170.3800.04014.56
5.3.160.3570.04314.57
5.3.150.3500.04714.59
5.3.140.3830.03314.55
5.3.130.4000.02014.64
5.3.120.3630.03714.56
5.3.110.3630.03314.59
5.3.100.4000.03014.07
5.3.90.3930.03314.02
5.3.80.3800.04314.02
5.3.70.3930.03014.09
5.3.60.3670.04314.04
5.3.50.3870.03013.99
5.3.40.3900.03313.99
5.3.30.3400.03713.90
5.3.20.3900.03313.66
5.3.10.3930.02713.70
5.3.00.4070.03013.67
5.2.170.3000.02711.31
5.2.160.3170.03011.20
5.2.150.3300.02311.09
5.2.140.3130.02711.21
5.2.130.3030.02711.16
5.2.120.3170.02711.14
5.2.110.3170.03311.14
5.2.100.3200.03011.12
5.2.90.3030.02311.11
5.2.80.3000.03311.09
5.2.70.3200.03011.14
5.2.60.3270.03011.04
5.2.50.3100.02710.89
5.2.40.2530.02310.91
5.2.30.2370.03010.96
5.2.20.2730.03011.10
5.2.10.2730.03010.85
5.2.00.3130.02310.88
5.1.60.3100.02710.05
5.1.50.2930.02310.07
5.1.40.3230.0239.96
5.1.30.3070.03010.35
5.1.20.2630.02710.32
5.1.10.2700.02310.12
5.1.00.2330.02310.09
5.0.50.1470.0208.61
5.0.40.1770.0208.46
5.0.30.1530.0308.13
5.0.20.1430.0178.21
5.0.10.1200.0238.15
5.0.00.1170.0308.13
4.4.90.1230.0175.99
4.4.80.1430.0175.99
4.4.70.1270.0105.99
4.4.60.1600.0205.99
4.4.50.1400.0175.99
4.4.40.1400.0275.99
4.4.30.1770.0135.99
4.4.20.1500.0205.99
4.4.10.0900.0205.99
4.4.00.1370.0275.99
4.3.110.1100.0175.99
4.3.100.1500.0105.99
4.3.90.1400.0175.99
4.3.80.1230.0205.99
4.3.70.1130.0105.99
4.3.60.1230.0135.99
4.3.50.1430.0175.99
4.3.40.1200.0305.99
4.3.30.0600.0175.99
4.3.20.0570.0175.99
4.3.10.0570.0175.99
4.3.00.0600.0175.99

preferences:
34.9 ms | 400 KiB | 5 Q