3v4l.org

run code in 300+ PHP versions simultaneously
<?php function la() { return [1 => 'a', 2 => 'b']; } echo la()[1]

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.80.0130.07720.38
5.5.240.0030.08020.15
5.4.400.0670.05718.67
5.4.390.0530.05718.84
5.4.380.0500.05018.74
5.4.370.0270.07318.75
5.4.360.0430.05318.63
5.4.350.0600.06018.64
5.4.340.0370.05718.74
5.4.320.0430.05718.55
5.4.310.0400.06318.51
5.4.300.0370.08018.72
5.4.290.0400.07018.59
5.4.280.0370.07318.55
5.4.270.0230.07318.83
5.4.260.0300.05718.74
5.4.250.0500.07718.73
5.4.240.0600.06318.59
5.4.230.0500.06718.79
5.4.220.0370.07718.50
5.4.210.0370.08318.69
5.4.200.0300.08016.51
5.4.190.0400.07318.68
5.4.180.0300.08018.68
5.4.170.0400.07718.57
5.4.160.0470.05318.73
5.4.150.0370.05318.78
5.4.140.0470.07016.25
5.4.130.0230.05716.21
5.4.120.0300.06716.25
5.4.110.0300.08016.43
5.4.100.0530.06716.19
5.4.90.0370.06316.32
5.4.80.0400.06716.18
5.4.70.0370.06716.27
5.4.60.0470.06716.29
5.4.50.0470.05716.29
5.4.40.0400.08016.26
5.4.30.0600.05016.18
5.4.20.0370.06716.16
5.4.10.0230.06716.38
5.4.00.0670.06315.77
5.3.290.0430.07314.68
5.3.280.0330.07314.78
5.3.270.0370.07714.71
5.3.260.0600.05714.63
5.3.250.0400.07314.71
5.3.240.0400.06714.82
5.3.230.0430.05714.66
5.3.220.0430.07014.59
5.3.210.0530.06714.61
5.3.200.0470.06314.61
5.3.190.0270.08014.74
5.3.180.0470.07314.64
5.3.170.0500.06314.60
5.3.160.0330.07314.56
5.3.150.0500.07014.71
5.3.140.0400.07014.78
5.3.130.0500.07014.71
5.3.120.0370.07314.58
5.3.110.0400.07314.73
5.3.100.0470.06014.08
5.3.90.0470.06014.02
5.3.80.0530.05714.03
5.3.70.0500.05314.11
5.3.60.0370.06314.09
5.3.50.0500.04714.05
5.3.40.0470.04313.97
5.3.30.0700.07013.96
5.3.20.0400.04013.68
5.3.10.0230.06013.82
5.3.00.0530.05313.75
5.2.170.0370.06011.27
5.2.160.0500.05011.16
5.2.150.0370.04711.26
5.2.140.0330.04011.28
5.2.130.0170.06011.21
5.2.120.0170.04711.16
5.2.110.0270.04011.23
5.2.100.0300.04711.17
5.2.90.0230.03711.15
5.2.80.0270.03711.18
5.2.70.0370.05711.19
5.2.60.0230.05011.16
5.2.50.0400.03311.06
5.2.40.0230.05010.99
5.2.30.0100.06011.09
5.2.20.0270.04710.95
5.2.10.0330.04310.89
5.2.00.0230.04710.70
5.1.60.0230.03710.00
5.1.50.0170.04710.06
5.1.40.0270.03710.05
5.1.30.0230.03710.32
5.1.20.0300.03710.40
5.1.10.0230.04010.11
5.1.00.0300.05010.14
5.0.50.0170.0378.65
5.0.40.0200.0338.44
5.0.30.0230.0538.35
5.0.20.0200.0338.32
5.0.10.0170.0378.31
5.0.00.0270.0478.33
4.4.90.0200.0276.00
4.4.80.0130.0305.90
4.4.70.0130.0335.91
4.4.60.0200.0305.87
4.4.50.0070.0335.96
4.4.40.0170.0406.01
4.4.30.0100.0275.92
4.4.20.0130.0235.95
4.4.10.0200.0276.04
4.4.00.0130.0436.02
4.3.110.0200.0305.86
4.3.100.0130.0305.84
4.3.90.0200.0275.84
4.3.80.0130.0435.82
4.3.70.0170.0305.80
4.3.60.0170.0275.84
4.3.50.0070.0375.88
4.3.40.0130.0435.77
4.3.30.0030.0335.50
4.3.20.0100.0305.50
4.3.10.0100.0275.50
4.3.00.0000.0236.88

preferences:
146.47 ms | 1394 KiB | 7 Q