3v4l.org

run code in 300+ PHP versions simultaneously
<?php $m1=10; $m2=20; for($i=1; $i<3; $i++){ echo $"m$i" . "\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)
5.4.320.0370.04019.23
5.4.310.0400.06318.97
5.4.300.0430.06319.21
5.4.290.0430.06719.15
5.4.280.0430.05319.04
5.4.270.0470.03319.12
5.4.260.0430.05319.08
5.4.250.0500.06018.85
5.4.240.0370.03719.30
5.4.230.0370.05019.22
5.4.220.0270.04319.14
5.4.210.0330.05319.14
5.4.200.0470.05319.30
5.4.190.0400.05719.21
5.4.180.0500.03719.20
5.4.170.0470.06719.14
5.4.160.0400.03719.21
5.4.150.0400.06719.09
5.4.140.0430.06716.29
5.4.130.0400.05716.34
5.4.120.0370.06316.51
5.4.110.0470.06016.19
5.4.100.0430.06716.52
5.4.90.0370.04016.55
5.4.80.0430.05016.44
5.4.70.0400.04316.52
5.4.60.0330.03316.34
5.4.50.0400.04316.52
5.4.40.0370.05016.25
5.4.30.0400.06716.51
5.4.20.0370.03716.38
5.4.10.0300.03716.25
5.4.00.0400.03315.73
5.3.290.0300.04314.54
5.3.280.0370.07314.64
5.3.270.0470.06314.56
5.3.260.0470.05314.45
5.3.250.0370.04014.57
5.3.240.0570.07014.45
5.3.230.0470.03314.43
5.3.220.0400.07014.40
5.3.210.0470.05714.50
5.3.200.0400.04714.41
5.3.190.0530.03314.66
5.3.180.0370.04714.61
5.3.170.0400.07014.44
5.3.160.0500.05714.41
5.3.150.0370.04714.43
5.3.140.0400.06314.40
5.3.130.0500.05714.41
5.3.120.0370.03314.56
5.3.110.0370.04314.53
5.3.100.0470.06013.89
5.3.90.0400.07013.88
5.3.80.0400.04313.97
5.3.70.0430.05713.97
5.3.60.0270.04313.91
5.3.50.0330.03313.99
5.3.40.0470.03713.85
5.3.30.0330.05713.86
5.3.20.0400.03013.55
5.3.10.0330.07013.50
5.3.00.0400.05013.48
5.2.170.0230.03312.98
5.2.160.0370.03712.98
5.2.150.0300.03712.98
5.2.140.0230.03012.98
5.2.130.0270.05312.98
5.2.120.0330.03712.98
5.2.110.0330.04712.98
5.2.100.0370.03312.98
5.2.90.0370.04712.98
5.2.80.0370.05712.98
5.2.70.0300.05012.98
5.2.60.0300.03312.98
5.2.50.0270.04312.98
5.2.40.0200.03012.98
5.2.30.0300.03312.98
5.2.20.0170.03312.98
5.2.10.0230.03012.98
5.2.00.0270.05712.98
5.1.60.0270.03012.98
5.1.50.0200.05012.98
5.1.40.0230.05012.98
5.1.30.0200.04712.98
5.1.20.0330.04312.98
5.1.10.0270.04312.98
5.1.00.0270.04712.98
5.0.50.0170.04712.98
5.0.40.0170.04312.98
5.0.30.0130.06012.98
5.0.20.0130.02712.98
5.0.10.0130.03012.98
5.0.00.0170.06312.98
4.4.90.0100.02312.98
4.4.80.0100.02312.98
4.4.70.0100.03712.98
4.4.60.0130.03012.98
4.4.50.0200.02712.98
4.4.40.0130.04312.98
4.4.30.0130.03312.98
4.4.20.0100.02712.98
4.4.10.0130.02712.98
4.4.00.0070.04012.98
4.3.110.0130.03712.98
4.3.100.0130.01312.98
4.3.90.0070.01712.98
4.3.80.0100.02312.98
4.3.70.0200.02712.98
4.3.60.0130.02312.98
4.3.50.0170.03312.98
4.3.40.0100.03012.98
4.3.30.0100.01712.98
4.3.20.0070.03312.98
4.3.10.0070.03012.98
4.3.00.0100.03012.98

preferences:
141.09 ms | 1394 KiB | 7 Q