3v4l.org

run code in 300+ PHP versions simultaneously
<?php $color = array('white', 'green', 'red', 'blue', 'black'); echo "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. - Richard M. Nixon" ?> - See more at: http://www.w3resource.com/php-exercises/php-array-exercises.php#sthash.gOAeV8ql.dpuf

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)
8.3.60.0160.00316.38
8.3.50.0080.00722.92
8.3.40.0040.01218.84
8.3.30.0070.01019.22
8.3.20.0070.00720.20
8.3.10.0110.00323.53
8.3.00.0060.00319.26
8.2.180.0040.01116.50
8.2.170.0120.00322.96
8.2.160.0130.00620.35
8.2.150.0000.00824.18
8.2.140.0070.00724.66
8.2.130.0060.01026.16
8.2.120.0080.00021.05
8.2.110.0080.00022.22
8.2.100.0040.00718.09
8.2.90.0090.00019.17
8.2.80.0040.00417.97
8.2.70.0030.00617.71
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00820.00
8.2.30.0040.00418.13
8.2.20.0000.00717.56
8.2.10.0080.00018.11
8.2.00.0080.00017.57
8.1.280.0080.00625.92
8.1.270.0060.01323.71
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0080.00319.16
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0080.00317.35
8.1.190.0000.01117.23
8.1.180.0000.00818.10
8.1.170.0060.00318.36
8.1.160.0040.00421.95
8.1.150.0030.00618.82
8.1.140.0040.00417.28
8.1.130.0030.00317.81
8.1.120.0040.00417.46
8.1.110.0000.00717.41
8.1.100.0000.00717.37
8.1.90.0030.00317.29
8.1.80.0000.00717.31
8.1.70.0050.00217.30
8.1.60.0000.00817.47
8.1.50.0040.00417.42
8.1.40.0000.00817.35
8.1.30.0000.00817.57
8.1.20.0040.00417.55
8.1.10.0050.00317.59
8.1.00.0040.00817.50
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0030.00317.36
8.0.260.0000.00617.24
8.0.250.0070.00016.81
8.0.240.0000.00816.94
8.0.230.0040.00416.96
8.0.220.0030.00316.78
8.0.210.0060.00016.90
8.0.200.0070.00016.86
8.0.190.0030.00616.96
8.0.180.0000.00816.88
8.0.170.0030.00616.81
8.0.160.0000.00716.88
8.0.150.0070.00016.71
8.0.140.0100.00016.76
8.0.130.0000.00513.29
8.0.120.0040.00416.76
8.0.110.0040.00416.73
8.0.100.0040.00416.84
8.0.90.0030.00316.79
8.0.80.0110.00516.86
8.0.70.0030.00516.84
8.0.60.0040.00416.95
8.0.50.0040.00416.75
8.0.30.0050.01717.12
8.0.20.0130.00617.40
8.0.10.0070.00016.96
8.0.00.0080.01016.72
7.4.330.0020.00215.03
7.4.320.0000.00616.38
7.4.300.0030.00316.45
7.4.290.0040.00416.44
7.4.280.0000.00716.38
7.4.270.0040.00416.43
7.4.260.0000.00816.41
7.4.250.0040.00416.41
7.4.240.0040.00316.51
7.4.230.0070.00016.42
7.4.220.0090.00916.31
7.4.210.0070.01016.55
7.4.200.0000.00716.54
7.4.160.0130.00316.29
7.4.150.0060.01217.40
7.4.140.0080.01017.86
7.4.130.0070.01016.51
7.4.120.0070.01116.57
7.4.110.0070.01516.45
7.4.100.0120.00616.61
7.4.90.0130.00316.44
7.4.80.0150.00419.39
7.4.70.0140.00316.32
7.4.60.0060.01016.30
7.4.50.0000.00816.36
7.4.40.0120.00416.30
7.4.30.0060.01016.45
7.4.10.0000.01914.80
7.4.00.0060.00914.75
7.3.330.0000.00612.93
7.3.320.0000.00513.04
7.3.310.0040.00416.15
7.3.300.0000.00716.19
7.3.290.0030.01116.18
7.3.280.0060.01016.22
7.3.270.0090.01617.40
7.3.260.0100.00716.40
7.3.250.0090.00716.43
7.3.240.0160.00316.44
7.3.230.0130.00316.39
7.3.210.0030.01316.38
7.3.200.0130.00419.39
7.3.190.0090.00616.39
7.3.180.0080.00816.61
7.3.170.0030.01216.30
7.3.160.0090.00616.24
7.3.130.0100.00714.75
7.3.120.0090.00914.65
7.3.110.0020.01514.92
7.3.100.0070.00714.76
7.3.90.0070.00814.71
7.3.80.0110.00514.68
7.3.70.0030.01114.78
7.3.60.0030.01014.74
7.3.50.0050.00914.76
7.3.40.0050.00714.64
7.3.30.0120.00314.82
7.3.20.0050.01116.54
7.3.10.0070.00616.46
7.3.00.0050.01216.52
7.2.330.0090.00816.67
7.2.320.0090.01316.47
7.2.310.0120.00616.59
7.2.300.0100.00716.77
7.2.290.0070.01316.68
7.2.260.0000.01414.93
7.2.250.0060.00915.07
7.2.240.0030.01314.97
7.2.230.0050.01115.02
7.2.220.0050.01315.02
7.2.210.0080.00815.00
7.2.200.0020.01114.91
7.2.190.0070.00715.00
7.2.180.0070.00815.00
7.2.170.0050.00715.16
7.2.160.0070.00614.90
7.2.150.0070.00716.84
7.2.140.0060.01116.89
7.2.130.0080.00916.74
7.2.120.0060.01116.72
7.2.110.0090.00816.73
7.2.100.0060.01116.72
7.2.90.0110.00516.73
7.2.80.0090.00716.71
7.2.70.0050.01016.94
7.2.60.0110.00616.84
7.2.50.0070.01016.65
7.2.40.0060.01016.87
7.2.30.0080.00916.80
7.2.20.0080.00816.73
7.2.10.0110.00716.75
7.2.00.0080.00817.30
7.1.330.0070.00915.74
7.1.320.0070.00915.70
7.1.310.0050.00615.49
7.1.300.0090.00615.74
7.1.290.0050.00615.69
7.1.280.0060.00815.62
7.1.270.0040.01215.50
7.1.260.0100.00515.81
7.1.250.0080.00915.58
7.1.240.0040.00715.71
7.1.230.0060.00615.89
7.1.220.0040.01115.77
7.1.210.0000.00915.68
7.1.200.0070.00715.72
7.1.190.0030.00515.61
7.1.180.0130.00015.48
7.1.170.0070.01015.68
7.1.160.0080.00315.85
7.1.150.0030.01315.66
7.1.140.0080.00415.81
7.1.130.0040.00815.71
7.1.120.0030.01415.84
7.1.110.0030.00715.79
7.1.100.0090.00416.86
7.1.90.0030.00815.31
7.1.80.0000.01215.69
7.1.70.0020.01216.43
7.1.60.0080.01017.33
7.1.50.0030.01116.20
7.1.40.0040.01115.72
7.1.30.0000.01415.79
7.1.20.0060.00915.88
7.1.10.0080.00315.64
7.1.00.0050.04019.04
7.0.330.0040.00815.38
7.0.320.0070.00715.11
7.0.310.0000.01315.50
7.0.300.0060.00615.13
7.0.290.0040.00815.27
7.0.280.0030.00715.11
7.0.270.0030.00915.13
7.0.260.0060.00615.40
7.0.250.0110.00315.38
7.0.240.0000.01115.50
7.0.230.0000.01015.30
7.0.220.0070.00715.49
7.0.210.0000.01115.37
7.0.200.0020.00916.06
7.0.190.0000.01215.12
7.0.180.0030.00615.30
7.0.170.0110.00415.39
7.0.160.0000.01315.49
7.0.150.0000.01115.41
7.0.140.0060.03618.68
7.0.130.0110.00315.48
7.0.120.0090.00615.55
7.0.110.0030.01015.29
7.0.100.0060.00615.46
7.0.90.0060.00615.47
7.0.80.0000.01315.21
7.0.70.0000.01615.50
7.0.60.0070.04217.51
7.0.50.0040.04416.70
7.0.40.0050.02716.62
7.0.30.0210.04016.84
7.0.20.0200.02616.84
7.0.10.0060.03716.90
7.0.00.0020.03016.67
5.6.400.0080.00414.39
5.6.390.0060.00614.47
5.6.380.0070.00414.50
5.6.370.0060.00314.69
5.6.360.0000.01214.16
5.6.350.0070.00714.48
5.6.340.0090.00614.20
5.6.330.0060.00614.48
5.6.320.0070.01114.67
5.6.310.0030.00614.58
5.6.300.0070.00714.66
5.6.290.0030.00914.68
5.6.280.0060.03517.59
5.6.270.0100.00614.49
5.6.260.0070.00314.31
5.6.250.0060.00314.42
5.6.240.0030.01014.47
5.6.230.0000.00814.54
5.6.220.0070.01114.50
5.6.210.0030.03117.63
5.6.200.0030.02516.30
5.6.190.0090.02417.38
5.6.180.0210.04017.45
5.6.170.0140.03017.30
5.6.160.0040.02917.46
5.6.150.0020.02816.26
5.6.140.0000.02916.13
5.6.130.0050.02216.41
5.6.120.0070.03517.81
5.6.110.0050.04417.60
5.6.100.0080.02517.53
5.6.90.0140.03817.68
5.6.80.0050.03217.33
5.6.70.0030.01314.14
5.6.60.0100.00314.11
5.6.50.0060.01214.18
5.6.40.0050.00514.10
5.6.30.0080.00814.54
5.6.20.0070.00314.06
5.6.10.0060.00914.45
5.6.00.0040.00814.24
5.5.380.0000.00814.11
5.5.370.0110.00414.28
5.5.360.0140.00314.34
5.5.350.0020.02117.51
5.5.340.0050.04416.06
5.5.330.0080.02817.28
5.5.320.0120.03617.42
5.5.310.0180.04017.38
5.5.300.0080.02816.18
5.5.290.0050.04116.24
5.5.280.0080.04017.46
5.5.270.0080.04317.55
5.5.260.0100.04317.58
5.5.250.0120.02217.24
5.5.240.1600.02017.33
5.5.230.0100.00314.45
5.5.220.0110.00714.45
5.5.210.0060.00814.44
5.5.200.0080.00814.19
5.5.190.0070.00714.14
5.5.180.0110.00414.29
5.5.170.0030.01214.54
5.5.160.0060.00314.20
5.5.150.0000.01614.34
5.5.140.0080.00614.46
5.5.130.0070.01114.18
5.5.120.0060.00614.36
5.5.110.0110.00414.23
5.5.100.0060.00914.24
5.5.90.0080.00714.44
5.5.80.0070.00314.04
5.5.70.0040.01114.36
5.5.60.0030.01014.32
5.5.50.0070.00714.05
5.5.40.0060.00314.00
5.5.30.0030.01014.32
5.5.20.0030.01013.94
5.5.10.0070.00414.32
5.5.00.0040.01114.20
5.4.450.0250.03215.29
5.4.440.0080.02315.31
5.4.430.0170.03115.30
5.4.420.0170.03015.22
5.4.410.0190.02415.00
5.4.400.0170.02515.10
5.4.390.0180.02815.12
5.4.380.0170.03314.85
5.4.370.0120.02814.79
5.4.360.0480.02814.85
5.4.350.0090.02914.79
5.4.340.0100.02714.76
5.4.330.0070.00310.99
5.4.320.0020.02511.72
5.4.310.0050.02211.72
5.4.300.0060.02111.72
5.4.290.0020.02711.75
5.4.280.0040.02211.67
5.4.270.0080.01811.67
5.4.260.0050.03011.67
5.4.250.0050.02111.67
5.4.240.0070.01911.67
5.4.230.0020.02611.67
5.4.220.0020.02511.66
5.4.210.0040.02011.66
5.4.200.0060.02011.67
5.4.190.0040.02211.66
5.4.180.0040.02011.66
5.4.170.0050.02111.67
5.4.160.0030.02311.67
5.4.150.0070.02111.67
5.4.140.0030.02411.51
5.4.130.0060.02011.50
5.4.120.0070.02111.60
5.4.110.0020.02111.48
5.4.100.0070.02111.51
5.4.90.0060.02211.48
5.4.80.0060.02111.54
5.4.70.0060.02011.47
5.4.60.0050.02111.48
5.4.50.0020.02411.48
5.4.40.0050.01911.52
5.4.30.0060.01911.54
5.4.20.0060.02111.47
5.4.10.0040.02711.54
5.4.00.0010.03211.21
5.3.290.0120.03712.80
5.3.280.0030.04112.70
5.3.270.0070.04212.72
5.3.260.0060.04212.71
5.3.250.0080.03512.72
5.3.240.0090.03512.72
5.3.230.0050.03812.71
5.3.220.0050.03812.68
5.3.210.0060.04112.68
5.3.200.0040.05112.68
5.3.190.0040.04012.68
5.3.180.0070.03512.67
5.3.170.0080.03612.67
5.3.160.0070.03512.68
5.3.150.0070.03712.68
5.3.140.0150.05012.66
5.3.130.0160.03812.66
5.3.120.0150.03712.66
5.3.110.0060.03912.66
5.3.100.0050.03912.12
5.3.90.0040.04512.08
5.3.80.0050.04012.07
5.3.70.0100.03912.08
5.3.60.0130.03512.06
5.3.50.0030.03912.00
5.3.40.0060.03612.00
5.3.30.0040.03911.95
5.3.20.0270.04311.72
5.3.10.0050.03711.69
5.3.00.0060.03811.68
5.2.170.0100.0399.18
5.2.160.0060.0389.18
5.2.150.0050.0339.18
5.2.140.0040.0379.18
5.2.130.0080.0479.14
5.2.120.0070.0399.13
5.2.110.0030.0359.14
5.2.100.0080.0379.14
5.2.90.0060.0289.13
5.2.80.0090.0389.13
5.2.70.0020.0339.13
5.2.60.0030.0409.09
5.2.50.0040.0319.05
5.2.40.0040.0389.04
5.2.30.0040.0369.01
5.2.20.0040.0299.01
5.2.10.0060.0278.94
5.2.00.0060.0348.79
5.1.60.0040.0248.08
5.1.50.0030.0268.08
5.1.40.0050.0248.06
5.1.30.0070.0238.41
5.1.20.0040.0348.43
5.1.10.0060.0248.16
5.1.00.0050.0358.15
5.0.50.0030.0216.63
5.0.40.0060.0216.49
5.0.30.0040.0306.30
5.0.20.0020.0216.28
5.0.10.0030.0206.25
5.0.00.0060.0296.25
4.4.90.0050.0194.78
4.4.80.0020.0164.75
4.4.70.0010.0174.76
4.4.60.0020.0164.75
4.4.50.0060.0204.77
4.4.40.0040.0244.71
4.4.30.0020.0174.76
4.4.20.0030.0154.85
4.4.10.0030.0224.85
4.4.00.0040.0234.76
4.3.110.0010.0194.67
4.3.100.0030.0144.66
4.3.90.0020.0214.64
4.3.80.0020.0254.59
4.3.70.0030.0144.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0040.0234.54
4.3.30.0030.0153.30
4.3.20.0030.0153.27
4.3.10.0000.0193.21
4.3.00.0000.01713.25

preferences:
42.37 ms | 401 KiB | 5 Q