3v4l.org

run code in 300+ PHP versions simultaneously
<?php $colors = array('red', 'blue', 'green', 'yellow'); foreach ($colors as $color) { echo "Do you like $color?\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.0270.05318.88
5.4.310.0270.07319.16
5.4.300.0300.04019.19
5.4.290.0230.05318.98
5.4.280.0230.07018.87
5.4.270.0230.07019.08
5.4.260.0270.04018.87
5.4.250.0200.03319.13
5.4.240.0130.04018.94
5.4.230.0270.06318.98
5.4.220.0170.04018.99
5.4.210.0170.04018.96
5.4.200.0230.04019.08
5.4.190.0230.03018.86
5.4.180.0230.03018.86
5.4.170.0170.04019.07
5.4.160.0130.04019.12
5.4.150.0270.04019.11
5.4.140.0170.04016.52
5.4.130.0170.03716.50
5.4.120.0230.03016.50
5.4.110.0170.03716.54
5.4.100.0170.03716.52
5.4.90.0170.03716.26
5.4.80.0230.03016.52
5.4.70.0270.02716.54
5.4.60.0170.03716.52
5.4.50.0170.03716.32
5.4.40.0300.02316.25
5.4.30.0270.03316.23
5.4.20.0270.05016.42
5.4.10.0200.06016.23
5.4.00.0300.04315.91
5.3.290.0300.07314.62
5.3.280.0200.04314.44
5.3.270.0200.03714.45
5.3.260.0270.03014.70
5.3.250.0130.04014.46
5.3.240.0230.03314.64
5.3.230.0230.06314.58
5.3.220.0200.03714.41
5.3.210.0270.03314.61
5.3.200.0230.03014.40
5.3.190.0330.02714.40
5.3.180.0130.04314.52
5.3.170.0200.03314.51
5.3.160.0200.03314.61
5.3.150.0170.03714.47
5.3.140.0300.02314.55
5.3.130.0170.04314.40
5.3.120.0200.05714.48
5.3.110.0300.05014.49
5.3.100.0230.04313.87
5.3.90.0200.06313.90
5.3.80.0300.05714.11
5.3.70.0200.06014.07
5.3.60.0230.06013.99
5.3.50.0300.04013.89
5.3.40.0270.04313.93
5.3.30.0370.05014.00
5.3.20.0200.05013.64
5.3.10.0330.04313.71
5.3.00.0200.04313.75
5.2.170.0230.05712.08
5.2.160.0270.05712.08
5.2.150.0330.04312.08
5.2.140.0200.04012.08
5.2.130.0230.05312.08
5.2.120.0230.06012.08
5.2.110.0200.03012.08
5.2.100.0170.03012.08
5.2.90.0230.02312.08
5.2.80.0170.03012.08
5.2.70.0230.05712.08
5.2.60.0200.06312.08
5.2.50.0370.04012.08
5.2.40.0230.04012.08
5.2.30.0170.03712.08
5.2.20.0270.05312.08
5.2.10.0200.05312.08
5.2.00.0230.05312.08
5.1.60.0200.05012.08
5.1.50.0270.04712.08
5.1.40.0230.03712.08
5.1.30.0200.04012.08
5.1.20.0130.03712.08
5.1.10.0170.02312.08
5.1.00.0170.05712.08
5.0.50.0130.04312.08
5.0.40.0130.02712.08
5.0.30.0170.05712.08
5.0.20.0170.02012.08
5.0.10.0070.04012.08
5.0.00.0200.03012.08
4.4.90.0100.01712.08
4.4.80.0100.02312.08
4.4.70.0130.02712.08
4.4.60.0100.03712.08
4.4.50.0070.03712.08
4.4.40.0170.04012.08
4.4.30.0070.04012.08
4.4.20.0100.01312.08
4.4.10.0130.02712.08
4.4.00.0130.04012.08
4.3.110.0100.02312.08
4.3.100.0130.01712.08
4.3.90.0170.02012.08
4.3.80.0100.04712.08
4.3.70.0100.01712.08
4.3.60.0170.01712.08
4.3.50.0100.03312.08
4.3.40.0130.04012.08
4.3.30.0100.01712.08
4.3.20.0030.02712.08
4.3.10.0030.02012.08
4.3.00.0100.03012.08

preferences:
140.95 ms | 1394 KiB | 7 Q