3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1 => [1, 2, 3], 3 => [4, 5 ,6], 5 => [6, 7, 8]]; var_dump(reset($array[3]))

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.6.70.3700.03720.39
5.4.390.0170.05718.65
5.4.380.0130.07018.57
5.4.370.0130.05718.52
5.4.360.0170.05318.60
5.4.350.0370.06018.72
5.4.340.0130.08318.72
5.4.320.0230.05718.55
5.4.310.0130.06018.74
5.4.300.0230.05018.65
5.4.290.0130.06318.50
5.4.280.0230.06718.50
5.4.270.0170.07718.71
5.4.260.0170.05718.45
5.4.250.0270.06018.69
5.4.240.0300.05018.72
5.4.230.0270.05018.58
5.4.220.0270.05018.68
5.4.210.0170.05718.59
5.4.200.0170.05316.55
5.4.190.0200.05318.72
5.4.180.0300.04318.63
5.4.170.0370.04718.57
5.4.160.0130.06018.50
5.4.150.0230.05718.66
5.4.140.0270.04716.34
5.4.130.0200.06716.22
5.4.120.0170.05316.30
5.4.110.0130.05316.30
5.4.100.0270.04716.30
5.4.90.0230.04716.07
5.4.80.0170.06316.16
5.4.70.0230.05016.13
5.4.60.0270.04316.23
5.4.50.0130.06016.27
5.4.40.0130.06016.15
5.4.30.0170.05716.21
5.4.20.0170.05716.28
5.4.10.0100.05715.97
5.4.00.0130.05315.80
5.3.290.0170.05714.59
5.3.280.0200.05014.48
5.3.270.0270.05714.67
5.3.260.0100.06014.51
5.3.250.0270.05014.64
5.3.240.0170.05314.57
5.3.230.0170.05314.48
5.3.220.0170.04714.66
5.3.210.0130.06014.62
5.3.200.0330.03714.67
5.3.190.0130.06014.56
5.3.180.0170.05314.50
5.3.170.0130.06014.56
5.3.160.0170.05014.57
5.3.150.0130.05714.61
5.3.140.0170.05714.50
5.3.130.0270.06714.44
5.3.120.0330.04314.64
5.3.110.0300.05314.52
5.3.100.0270.04314.02
5.3.90.0170.05314.07
5.3.80.0230.04714.11
5.3.70.0130.05714.08
5.3.60.0270.04313.94
5.3.50.0100.05713.87
5.3.40.0130.05713.83
5.3.30.0130.05714.00
5.3.20.0200.05013.58
5.3.10.0300.04013.57
5.3.00.0300.05313.57
5.2.170.0130.04711.13
5.2.160.0100.05311.11
5.2.150.0200.04311.13
5.2.140.0200.03711.11
5.2.130.0100.04711.15
5.2.120.0130.04311.01
5.2.110.0230.04311.10
5.2.100.0100.04711.05
5.2.90.0200.04011.15
5.2.80.0170.04011.04
5.2.70.0170.04011.15
5.2.60.0100.05011.10
5.2.50.0170.04010.97
5.2.40.0130.04310.90
5.2.30.0130.04710.89
5.2.20.0200.04310.93
5.2.10.0170.04010.85
5.2.00.0000.06010.69
5.1.60.0130.03310.06
5.1.50.0130.04010.06
5.1.40.0100.04010.10
5.1.30.0130.03310.28
5.1.20.0130.03710.40
5.1.10.0130.03310.13
5.1.00.0100.03710.18
5.0.50.0070.0308.52
5.0.40.0100.0278.42
5.0.30.0070.0438.23
5.0.20.0130.0238.38
5.0.10.0130.0278.18
5.0.00.0130.0378.14
4.4.90.0130.0175.89
4.4.80.0070.0205.91
4.4.70.0100.0205.94
4.4.60.0100.0275.92
4.4.50.0030.0275.87
4.4.40.0100.0335.89
4.4.30.0070.0275.87
4.4.20.0000.0375.92
4.4.10.0030.0305.96
4.4.00.0000.0475.85
4.3.110.0130.0235.80
4.3.100.0100.0275.78
4.3.90.0070.0205.79
4.3.80.0100.0305.86
4.3.70.0030.0235.78
4.3.60.0000.0275.77
4.3.50.0100.0205.87
4.3.40.0070.0335.79
4.3.30.0030.0274.61
4.3.20.0000.0274.61
4.3.10.0000.0274.61
4.3.00.0100.0176.97

preferences:
146.93 ms | 1394 KiB | 7 Q