3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 'user_id' => 10, 'id' => 2, 'user' => 'Nakiya', ); /** * Get the last value from an array. */ function last($array) { return array_pop($array); } var_dump(last($array));

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.4.30.0080.00820.45
8.4.20.0040.00418.78
8.4.10.0090.00017.43
8.3.160.0110.00717.07
8.3.150.0110.00717.12
8.3.140.0050.00316.63
8.3.130.0000.00816.56
8.3.120.0040.00419.07
8.3.110.0040.00420.94
8.3.100.0080.00016.50
8.3.90.0000.00716.29
8.3.80.0030.00717.97
8.3.70.0090.00616.50
8.3.60.0100.01018.31
8.3.50.0150.00318.29
8.3.40.0140.00318.56
8.3.30.0060.01118.68
8.3.20.0000.00820.69
8.3.10.0080.00022.14
8.3.00.0030.00620.64
8.2.270.0040.01117.09
8.2.260.0110.00417.21
8.2.250.0050.00316.54
8.2.240.0060.00316.96
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0080.00026.77
8.2.200.0060.00316.50
8.2.190.0090.00616.58
8.2.180.0130.01018.29
8.2.170.0140.00022.96
8.2.160.0130.00022.26
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0050.00326.16
8.2.110.0060.00322.32
8.2.100.0090.00317.78
8.2.90.0000.00818.22
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0000.00918.04
8.2.30.0030.00617.89
8.2.20.0070.00018.06
8.2.10.0040.00419.18
8.2.00.0030.00519.17
8.1.310.0140.00416.50
8.1.300.0090.00018.12
8.1.290.0060.00618.88
8.1.280.0060.00925.92
8.1.270.0030.00523.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.45
8.1.230.0030.00917.42
8.1.220.0000.00917.74
8.1.210.0040.00418.91
8.1.200.0090.00017.23
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0080.00018.46
8.1.160.0050.00318.73
8.1.150.0060.00618.75
8.1.140.0000.00820.32
8.1.130.0000.00717.38
8.1.120.0040.00417.28
8.1.110.0000.00717.39
8.1.100.0040.00417.36
8.1.90.0040.00417.25
8.1.80.0000.01017.30
8.1.70.0000.00817.41
8.1.60.0000.00917.46
8.1.50.0000.00717.41
8.1.40.0060.00317.47
8.1.30.0040.00417.66
8.1.20.0040.00417.53
8.1.10.0000.00717.40
8.1.00.0000.00817.51
8.0.300.0050.00519.81
8.0.290.0040.00416.63
8.0.280.0050.00218.28
8.0.270.0030.00317.25
8.0.260.0000.00616.66
8.0.250.0050.00316.80
8.0.240.0000.00716.87
8.0.230.0040.00416.79
8.0.220.0000.00716.75
8.0.210.0040.00416.68
8.0.200.0030.00316.90
8.0.190.0000.00716.91
8.0.180.0040.00416.90
8.0.170.0070.00316.85
8.0.160.0070.00016.77
8.0.150.0030.00316.71
8.0.140.0050.00516.80
8.0.130.0060.00013.23
8.0.120.0040.00416.80
8.0.110.0030.00516.72
8.0.100.0070.00016.68
8.0.90.0000.00816.81
8.0.80.0090.00616.81
8.0.70.0080.00016.93
8.0.60.0040.00416.71
8.0.50.0040.00416.66
8.0.30.0160.00617.27
8.0.20.0120.00917.12
8.0.10.0000.00816.91
8.0.00.0030.01416.78
7.4.330.0020.00215.55
7.4.320.0060.00016.42
7.4.300.0030.00316.47
7.4.290.0040.00416.38
7.4.280.0030.00516.48
7.4.270.0030.00316.50
7.4.260.0050.00313.26
7.4.250.0070.00016.55
7.4.240.0030.00416.57
7.4.230.0040.00416.68
7.4.220.0030.00316.45
7.4.210.0080.00916.51
7.4.200.0000.00716.40
7.4.130.0070.01116.57
7.4.120.0120.00616.52
7.4.110.0080.01216.48
7.4.100.0090.00916.54
7.4.90.0100.01016.32
7.4.80.0030.01319.39
7.4.70.0080.00816.40
7.4.60.0090.00616.39
7.4.50.0070.01016.24
7.4.40.0110.00816.64
7.4.00.0130.00314.96
7.3.330.0040.00416.20
7.3.320.0020.00313.02
7.3.310.0080.00016.32
7.3.300.0000.00716.11
7.3.290.0030.00316.20
7.3.260.0130.00616.37
7.3.240.0090.00816.36
7.3.230.0140.00716.27
7.3.210.0140.00916.44
7.3.200.0100.01316.50
7.3.190.0080.00816.20
7.3.180.0120.01516.32
7.3.170.0150.00616.29
7.3.160.0130.00916.26
7.3.100.0110.00514.33
7.3.90.0100.01014.87
7.3.80.0040.01515.01
7.3.70.0000.01314.42
7.3.60.0070.01114.63
7.3.50.0130.00314.85
7.3.40.0080.00614.64
7.3.30.0120.00314.51
7.3.20.0110.00314.75
7.3.10.0070.01014.64
7.3.00.0100.00314.72
7.2.330.0000.01716.34
7.2.320.0040.01316.11
7.2.310.0070.01416.30
7.2.300.0100.00716.39
7.2.290.0080.01116.55
7.2.230.0030.01214.62
7.2.220.0090.01214.97
7.2.210.0040.01114.99
7.2.200.0060.01014.73
7.2.190.0100.01014.89
7.2.180.0120.00314.70
7.2.170.0100.01014.83
7.2.160.0180.00314.69
7.2.150.0140.00315.03
7.2.140.0130.00315.00
7.2.130.0080.00615.11
7.2.120.0030.01215.04
7.2.110.0090.00615.00
7.2.100.0090.00614.85
7.2.90.0130.00315.02
7.2.80.0100.00314.75
7.2.70.0140.00014.97
7.2.60.0040.01115.08
7.2.50.0040.01114.90
7.2.40.0030.01014.87
7.2.30.0050.01014.82
7.2.20.0040.01114.95
7.2.10.0220.00615.06
7.2.00.0150.00614.86
7.1.320.0110.00713.91
7.1.310.0060.01214.03
7.1.300.0040.01114.00
7.1.290.0100.00314.04
7.1.280.0110.00713.90
7.1.270.0070.01013.92
7.1.260.0000.01213.91
7.1.250.0100.00313.91

preferences:
79.1 ms | 403 KiB | 5 Q