3v4l.org

run code in 300+ PHP versions simultaneously
<?php function somefunc() { return 'somestring'; } $time = microtime(1); $i = 0; while($i++ < 1000000) echo'somestring',somefunc(),'somestring'; echo (microtime(1)-$time)." seconds for commas"; echo "\n"; $time = microtime(1); $i = 0; while($i++ < 1000000) echo'somestring'.somefunc().'somestring'; echo (microtime(1)-$time)." seconds for dot";

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.0280.00314.59
7.2.90.1020.00914.62
7.2.80.1270.00314.47
7.2.70.0450.01714.82
7.2.60.0170.01014.83
7.2.50.1160.00715.02
7.2.40.1000.01314.71
7.2.30.0660.00315.16
7.2.20.1110.01014.91
7.2.10.0930.00314.98
7.2.00.1450.00715.14
7.1.220.0500.00913.84
7.1.210.0930.00713.97
7.1.200.0990.01013.71
7.1.190.1040.00313.73
7.1.180.0170.01713.65
7.1.170.1470.00313.79
7.1.160.0940.00913.83
7.1.150.1140.01013.88
7.1.140.0950.00913.93
7.1.130.0970.00713.61
7.1.120.1700.00313.77
7.1.110.1030.01313.71
7.1.100.0810.00613.61
7.1.90.0900.00613.83
7.1.80.0950.01013.70
7.1.70.0830.01013.72
7.1.60.1940.01032.10
7.1.50.0890.01331.67
7.1.40.0810.01231.66
7.1.30.0460.00431.72
7.1.20.1000.00731.80
7.1.10.0270.00313.72
7.1.00.0270.00413.61
7.0.310.1370.00713.61
7.0.300.0600.00713.61
7.0.290.0900.00613.61
7.0.280.0860.00313.61
7.0.270.1430.01313.61
7.0.260.0910.01113.64
7.0.250.0450.00713.61
7.0.240.1130.00613.61
7.0.230.1190.01413.61
7.0.220.0910.01313.61
7.0.210.0750.00913.61
7.0.200.0850.00313.61
7.0.190.0730.00913.61
7.0.180.0380.00013.61
7.0.170.0560.00613.61
7.0.160.0570.00313.61
7.0.150.0180.00913.61
7.0.140.0560.00613.61
7.0.130.0250.00713.69
7.0.120.1560.01013.80
7.0.110.1600.01313.61
7.0.100.0730.00613.71
7.0.90.0690.00713.65
7.0.80.0310.00013.65
7.0.70.0230.01213.61
7.0.60.0270.00713.61
7.0.50.0660.00913.69
7.0.40.0210.01013.63
7.0.30.0350.00313.64
7.0.20.0220.00013.69
7.0.10.0690.01113.61
7.0.00.0550.00913.66
5.6.380.0190.01114.36
5.6.370.0150.01314.36
5.6.360.0170.01014.05
5.6.350.0280.00014.47
5.6.340.0280.00313.93
5.6.330.0160.01113.97
5.6.320.0130.00814.23
5.6.310.0140.01114.26
5.6.300.0200.01314.24
5.6.290.0110.01814.46
5.6.280.0140.01214.13
5.6.270.0160.00514.47
5.6.260.0180.00914.25
5.6.250.0130.01314.25
5.6.240.0150.00814.07
5.6.230.0130.01314.05
5.6.220.0160.00314.05
5.6.210.0170.00314.34
5.6.200.0310.00514.05
5.6.190.0210.00514.09
5.6.180.0170.00914.42
5.6.170.0150.00814.40
5.6.160.0120.02014.03
5.6.150.0230.00514.54
5.6.140.0160.00714.47
5.6.130.0200.01014.27
5.6.120.0240.00314.45
5.6.110.0170.01714.38
5.6.100.0150.00814.25
5.6.90.0180.00714.09
5.6.80.0120.00914.29
5.6.70.0190.00514.03
5.6.60.0050.02514.31
5.5.380.0110.00713.61
5.5.370.0220.00413.61
5.5.360.0100.01013.61
5.5.350.0160.00313.61
5.5.340.0130.00413.61
5.5.330.0170.00313.61
5.5.320.0160.00513.61
5.5.310.0140.00513.61
5.5.300.0250.00613.61
5.5.290.0080.01113.61
5.5.280.0130.01013.61
5.5.270.0170.00713.61
5.5.260.0150.01013.61
5.5.250.0170.00313.61
5.5.240.0110.00813.61
5.5.230.0150.01213.61
5.4.450.0190.00413.61
5.4.440.0130.00313.61
5.4.430.0160.00413.61
5.4.420.0150.00313.61
5.4.410.0150.01513.61
5.4.400.0130.00313.61
5.4.390.0160.01113.61

preferences:
34.72 ms | 401 KiB | 5 Q