3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f1_virgule() { $a = ''; for($i=0; $i<100000; ++$i) { echo $a,$i,"\n"; } } function f2_point() { $a = ''; for($i=0; $i<100000; ++$i) { echo $a.$i."\n"; } } $start = microtime(true); f2_point(); $stop = microtime(true); $time_point = $stop - $start; $start = microtime(true); f1_virgule(); $stop = microtime(true); $time_virgule = $stop - $start; echo 'time virgule : ' . $time_virgule . "\n"; echo 'time point : ' . $time_point . "\n"; echo 'time virgule > time time_point => ' . ($time_virgule > $time_point); ?>

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.100.1050.01514.50
7.2.90.1260.01414.55
7.2.80.0900.01414.69
7.2.70.0280.02515.11
7.2.60.0880.02515.07
7.2.50.0880.02114.93
7.2.40.0400.01515.00
7.2.30.1280.02814.99
7.2.20.0950.01014.78
7.2.10.1250.01714.81
7.2.00.1350.02015.09
7.1.220.0970.01013.95
7.1.210.1090.01213.73
7.1.200.1140.01713.91
7.1.190.0320.01813.89
7.1.180.0380.01814.00
7.1.170.0880.01613.95
7.1.160.0430.01113.93
7.1.150.1040.02013.81
7.1.140.0520.01813.94
7.1.130.1010.02413.84
7.1.120.1050.00413.88
7.1.110.0920.00614.00
7.1.100.1200.02614.02
7.1.90.0310.01213.66
7.1.80.1030.01113.82
7.1.70.0940.02514.06
7.1.60.1060.02732.07
7.1.50.0820.02131.98
7.1.40.1130.00931.80
7.1.30.1010.01831.76
7.1.20.0750.01632.01
7.1.10.0400.01013.86
7.1.00.0240.02814.00
7.0.310.0940.02413.70
7.0.300.0950.02013.60
7.0.290.1100.02713.68
7.0.280.1070.02213.60
7.0.270.0900.02213.60
7.0.260.0990.00313.61
7.0.250.0580.01713.60
7.0.240.1420.02413.66
7.0.230.0640.01013.60
7.0.220.0230.01713.80
7.0.210.0790.01813.60
7.0.200.0540.03013.60
7.0.190.0500.01213.63
7.0.180.0270.02413.62
7.0.170.0500.01313.60
7.0.160.0210.01413.60
7.0.150.1240.02013.60
7.0.140.0610.02513.70
7.0.130.0650.01813.60
7.0.120.1140.00913.60
7.0.110.0900.01613.75
7.0.100.1600.02413.60
7.0.90.0440.02613.77
7.0.80.1880.01613.60
7.0.70.1210.02413.82
7.0.60.0940.02213.60
7.0.50.1130.01013.72
7.0.40.1240.00613.76
7.0.30.1600.01513.75
7.0.20.0900.03113.64
7.0.10.0970.01213.75
7.0.00.0470.01513.66
5.6.380.0360.03614.04
5.6.370.0230.03114.15
5.6.360.0330.01814.14
5.6.350.0300.02714.64
5.6.340.0370.02814.38
5.6.330.0140.03914.18
5.6.320.0300.00714.14
5.6.310.0260.02013.96
5.6.300.0160.01913.78
5.6.290.0250.01014.55
5.6.280.0290.02914.43
5.6.270.0300.02214.52
5.6.260.0220.04314.21
5.6.250.0350.02314.64
5.6.240.0360.01914.23
5.6.230.0420.01514.10
5.6.220.0340.01514.25
5.6.210.0380.01614.37
5.6.200.0210.01214.26
5.6.190.0360.02014.25
5.6.180.0320.01514.53
5.6.170.0130.01414.13
5.6.160.0380.02314.48
5.6.150.0320.01914.42
5.6.140.0400.02314.07
5.6.130.0330.02614.15
5.6.120.0360.02014.29
5.6.110.0160.01614.26
5.6.100.0190.01914.28
5.6.90.0450.02414.28
5.6.80.0380.02014.46
5.6.70.0230.02014.27
5.6.60.0380.02314.17
5.6.50.0370.02214.32
5.6.40.0430.02314.32
5.6.30.0470.02414.24
5.6.20.0320.02614.35
5.6.10.0330.02514.35
5.6.00.0430.02114.42
5.5.380.0220.00813.60
5.5.370.0410.02213.60
5.5.360.0380.00913.60
5.5.350.0500.01313.60
5.5.340.0390.01513.60
5.5.330.0270.02513.60
5.5.320.0380.01813.60
5.5.310.0230.02313.60
5.5.300.0270.00413.60
5.5.290.0370.01413.60
5.5.280.0210.00913.60
5.5.270.0210.02713.60
5.5.260.0280.03213.60
5.5.250.0440.01413.60
5.5.240.0220.00713.60
5.5.230.0400.02313.60
5.5.220.0260.02613.60
5.5.210.0180.01113.60
5.5.200.0220.02613.60
5.5.190.0080.01913.60
5.5.180.0380.02713.60
5.5.170.0410.02714.11
5.5.160.0360.02613.60
5.5.150.0350.02313.60
5.4.450.0380.02213.60
5.4.440.0370.01713.60
5.4.430.0250.01913.60
5.4.420.0340.02013.60
5.4.410.0170.01713.60
5.4.400.0360.02713.60
5.4.390.0380.00413.60
5.4.380.0430.02413.60
5.4.370.0220.01913.60
5.4.360.0070.02613.60
5.4.350.0230.00713.60
5.4.340.0220.01113.60
5.4.330.0280.03113.60
5.4.320.0390.02013.60
5.3.290.0360.01213.60

preferences:
38.03 ms | 400 KiB | 5 Q