3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color= $color = array('white', 'green', 'red', 'blue', 'black'); foreach($color as $color); { "The memory of that scene for me is like a frame of film forever frozen at that moment: the .$color[2]. carpet, the .$color[1]. lawn, the .$color[0]. house, the leaden sky. The new president and his first lady. }?>

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.0170.06319.25
5.4.310.0230.07019.09
5.4.300.0200.04319.22
5.4.290.0270.06718.88
5.4.280.0270.07018.90
5.4.270.0170.08019.10
5.4.260.0270.07019.15
5.4.250.0230.05019.07
5.4.240.0230.05018.89
5.4.230.0270.06318.80
5.4.220.0170.04018.88
5.4.210.0170.08318.80
5.4.200.0370.06319.23
5.4.190.0130.08018.91
5.4.180.0130.04319.10
5.4.170.0270.07319.13
5.4.160.0200.07319.04
5.4.150.0200.07319.20
5.4.140.0230.04716.29
5.4.130.0400.03316.35
5.4.120.0200.06016.43
5.4.110.0200.06016.31
5.4.100.0230.07016.48
5.4.90.0200.07016.39
5.4.80.0230.06716.36
5.4.70.0200.03316.34
5.4.60.0200.04016.06
5.4.50.0230.04716.47
5.4.40.0130.05316.18
5.4.30.0230.05716.45
5.4.20.0170.06016.46
5.4.10.0200.06316.47
5.4.00.0230.06015.71
5.3.290.0200.07014.51
5.3.280.0200.04014.45
5.3.270.0370.05714.72
5.3.260.0270.05314.46
5.3.250.0230.07314.56
5.3.240.0200.07714.51
5.3.230.0270.06714.53
5.3.220.0270.07014.41
5.3.210.0200.06714.40
5.3.200.0300.06014.43
5.3.190.0300.07014.55
5.3.180.0300.06014.52
5.3.170.0200.03314.52
5.3.160.0300.04314.50
5.3.150.0200.07314.59
5.3.140.0230.06714.53
5.3.130.0330.04314.66
5.3.120.0270.04714.50
5.3.110.0200.05314.39
5.3.100.0200.07313.92
5.3.90.0130.07714.12
5.3.80.0270.07013.82
5.3.70.0270.06313.87
5.3.60.0200.07314.03
5.3.50.0230.06713.88
5.3.40.0270.06713.91
5.3.30.0170.07313.85
5.3.20.0270.04313.65
5.3.10.0200.06313.44
5.3.00.0230.06713.59
5.2.170.0130.06312.19
5.2.160.0170.04312.19
5.2.150.0170.05012.19
5.2.140.0100.05312.19
5.2.130.0100.07012.19
5.2.120.0200.06012.19
5.2.110.0200.06012.19
5.2.100.0200.05712.19
5.2.90.0230.04312.19
5.2.80.0200.06012.19
5.2.70.0230.06012.19
5.2.60.0170.04712.19
5.2.50.0170.05312.19
5.2.40.0130.03712.19
5.2.30.0130.03312.19
5.2.20.0100.03712.19
5.2.10.0200.02312.19
5.2.00.0130.04312.19
5.1.60.0170.05012.19
5.1.50.0230.04312.19
5.1.40.0170.05312.19
5.1.30.0170.05012.19
5.1.20.0170.03712.19
5.1.10.0170.05012.19
5.1.00.0100.05712.19
5.0.50.0070.04012.19
5.0.40.0100.02712.19
5.0.30.0130.04312.19
5.0.20.0070.03012.19
5.0.10.0030.04312.19
5.0.00.0130.06012.19
4.4.90.0070.02712.19
4.4.80.0030.04012.19
4.4.70.0070.03012.19
4.4.60.0030.01712.19
4.4.50.0070.01712.19
4.4.40.0130.05012.19
4.4.30.0100.02312.19
4.4.20.0170.01712.19
4.4.10.0100.03012.19
4.4.00.0070.04012.19
4.3.110.0170.02712.19
4.3.100.0170.02012.19
4.3.90.0070.02712.19
4.3.80.0130.05012.19
4.3.70.0100.02312.19
4.3.60.0200.02312.19
4.3.50.0070.03312.19
4.3.40.0070.05012.19
4.3.30.0100.03312.19
4.3.20.0130.01312.19
4.3.10.0030.04012.19
4.3.00.0070.03012.19

preferences:
137.3 ms | 1394 KiB | 7 Q