3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST = [ 'wind' => [ 1 => 'hk', 2 => 'pop', 25 => 'another' ] ]; end($_POST['wind']); echo key($_POST['wind']);

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.20.0070.00318.70
8.4.10.0100.00019.68
8.3.150.0060.01216.49
8.3.140.0030.00617.10
8.3.130.0060.00316.71
8.3.120.0030.00620.84
8.3.110.0030.00620.94
8.3.100.0130.00724.06
8.3.90.0110.00726.77
8.3.80.0060.00317.97
8.3.70.0130.00718.43
8.3.60.0090.00618.25
8.3.50.0060.00817.28
8.3.40.0110.00718.74
8.3.30.0070.01118.71
8.3.20.0050.00318.55
8.3.10.0080.00023.48
8.3.00.0080.00021.78
8.2.260.0170.00016.70
8.2.250.0180.00018.39
8.2.240.0030.00619.07
8.2.230.0100.00022.58
8.2.220.0100.00637.54
8.2.210.0040.01526.77
8.2.200.0030.00618.04
8.2.190.0110.00320.38
8.2.180.0070.01016.38
8.2.170.0140.00022.96
8.2.160.0030.01019.33
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00021.04
8.2.120.0070.00026.35
8.2.110.0070.00321.00
8.2.100.0060.00618.03
8.2.90.0060.00317.98
8.2.80.0060.00319.22
8.2.70.0060.00317.93
8.2.60.0070.00018.22
8.2.50.0040.00418.10
8.2.40.0040.00419.48
8.2.30.0000.00820.52
8.2.20.0070.00018.11
8.2.10.0040.00418.21
8.2.00.0030.00519.40
8.1.310.0040.00418.50
8.1.300.0080.00020.35
8.1.290.0000.01030.84
8.1.280.0110.00725.92
8.1.270.0090.00020.73
8.1.260.0060.00626.35
8.1.250.0080.00028.09
8.1.240.0080.00322.38
8.1.230.0120.00020.82
8.1.220.0040.00417.79
8.1.210.0000.00818.82
8.1.200.0030.00617.13
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0040.00418.79
8.1.150.0000.00718.79
8.1.140.0030.00617.43
8.1.130.0000.00720.29
8.1.120.0000.00717.34
8.1.110.0000.00817.46
8.1.100.0000.00717.45
8.1.90.0000.00817.46
8.1.80.0040.00417.48
8.1.70.0050.00317.37
8.1.60.0030.00617.61
8.1.50.0040.00417.50
8.1.40.0080.00017.33
8.1.30.0000.00917.63
8.1.20.0060.00317.50
8.1.10.0000.00817.55
8.1.00.0000.00817.38
8.0.300.0070.00020.04
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0000.00716.80
8.0.260.0070.00022.05
8.0.250.0000.00816.86
8.0.240.0070.00016.94
8.0.230.0040.00416.95
8.0.220.0030.00316.75
8.0.210.0060.00016.93
8.0.200.0000.00616.96
8.0.190.0070.00016.80
8.0.180.0070.00016.93
8.0.170.0000.00816.88
8.0.160.0070.00016.90
8.0.150.0000.01016.89
8.0.140.0040.00416.81
8.0.130.0050.00013.33
8.0.120.0000.00816.82
8.0.110.0000.00816.87
8.0.100.0030.00516.75
8.0.90.0000.00716.88
8.0.80.0090.00716.87
8.0.70.0070.00016.94
8.0.60.0030.00516.80
8.0.50.0040.00416.66
8.0.30.0060.01117.07
8.0.20.0070.01417.40
8.0.10.0040.00416.78
8.0.00.0100.00816.92
7.4.330.0030.00315.55
7.4.320.0000.00616.56
7.4.300.0000.00716.54
7.4.290.0000.00716.59
7.4.280.0080.00016.46
7.4.270.0030.00316.49
7.4.260.0040.00416.52
7.4.250.0030.00316.57
7.4.240.0040.00416.49
7.4.230.0040.00416.58
7.4.220.0080.00016.61
7.4.210.0130.00516.56
7.4.200.0000.00716.61
7.4.160.0060.00916.43
7.4.140.0090.01117.86
7.4.130.0120.00616.52
7.4.120.0090.01116.51
7.4.110.0070.01416.50
7.4.100.0110.00516.61
7.4.90.0090.01316.45
7.4.80.0070.01019.39
7.4.70.0080.00816.54
7.4.60.0100.00616.50
7.4.50.0120.00616.28
7.4.40.0070.01016.45
7.4.10.0120.00616.18
7.4.00.0060.01115.73
7.3.330.0000.00613.08
7.3.320.0050.00013.02
7.3.310.0070.00016.28
7.3.300.0030.00316.16
7.3.290.0000.00616.22
7.3.280.0040.01116.23
7.3.260.0110.00616.47
7.3.240.0110.00716.38
7.3.230.0120.00416.44
7.3.210.0130.00316.45
7.3.200.0060.01216.43
7.3.190.0170.00016.16
7.3.180.0070.01616.28
7.3.170.0030.01316.54
7.3.160.0080.00816.58
7.3.130.0100.00716.27
7.3.120.0090.00916.29
7.3.110.0060.00916.32
7.3.100.0100.00316.41
7.3.90.0040.01416.51
7.3.80.0040.00716.41
7.3.70.0040.01116.11
7.3.60.0080.00516.23
7.3.50.0000.01116.25
7.3.40.0000.00916.37
7.3.30.0130.00316.12
7.3.20.0070.00718.12
7.3.10.0120.00017.97
7.3.00.0060.00918.12
7.2.330.0090.00916.51
7.2.320.0030.01316.79
7.2.310.0130.00316.62
7.2.300.0070.01016.65
7.2.290.0110.00616.43
7.2.260.0030.01016.49
7.2.250.0070.00716.39
7.2.240.0000.01516.58
7.2.230.0000.01716.59
7.2.220.0060.01216.67
7.2.210.0130.00316.64
7.2.200.0070.00716.42
7.2.190.0070.01016.38
7.2.180.0030.01016.49
7.2.170.0070.00416.45
7.2.160.0000.01516.56
7.2.150.0060.00618.50
7.2.140.0060.00618.41
7.2.130.0090.00918.49
7.2.120.0030.01018.36
7.2.110.0060.00918.42
7.2.100.0120.00618.48
7.2.90.0660.00816.57
7.2.80.0750.00716.35
7.2.70.0760.00916.42
7.2.60.0660.00616.64
7.2.50.0600.00716.66
7.2.40.1010.00716.71
7.2.30.0760.00516.58
7.2.20.0840.00816.56
7.2.10.0790.00816.72
7.2.00.0610.00616.66
7.1.330.0040.01117.40
7.1.320.0040.00717.23
7.1.310.0070.00717.38
7.1.300.0150.00017.40
7.1.290.0040.01217.24
7.1.280.0060.00617.42
7.1.270.0040.00417.33
7.1.260.0060.00617.18
7.1.250.0070.01017.29
7.1.240.0030.00717.17
7.1.230.0110.00017.26
7.1.220.0070.00717.35
7.1.210.0840.01015.50
7.1.200.0930.00515.56
7.1.190.0750.00415.37
7.1.180.0570.00515.41
7.1.170.0780.00515.45
7.1.160.0860.00515.64
7.1.150.0880.00715.48
7.1.140.0790.00515.51
7.1.130.0430.00915.54
7.1.120.0630.00515.56
7.1.110.0450.01315.47
7.1.100.0740.00515.50
7.1.90.0770.00815.55
7.1.80.0560.01415.46
7.1.70.0860.00315.67
7.1.60.1170.00824.53
7.1.50.1020.01324.57
7.1.40.1150.00824.52
7.1.30.1380.00524.39
7.1.20.1250.00724.50
7.1.10.1500.00315.50
7.1.00.0640.00515.50
7.0.330.0030.01017.04
7.0.320.0000.01416.81
7.0.310.0030.00616.90
7.0.300.0070.00716.95
7.0.290.0000.01016.84
7.0.280.0030.00816.78
7.0.270.0120.00416.80
7.0.260.0080.00816.91
7.0.250.0000.01116.75
7.0.240.0030.01316.91
7.0.230.0070.01116.79
7.0.220.0100.00716.99
7.0.210.0070.01016.87
7.0.200.0070.00716.91
7.0.190.0070.00717.01
7.0.180.0080.00416.68
7.0.170.0030.00716.82
7.0.160.0030.01016.97
7.0.150.0070.00416.92
7.0.140.0030.01516.89
7.0.130.0070.00716.58
7.0.120.0060.00316.79
7.0.110.0060.00616.84
7.0.100.0060.00616.84
7.0.90.0110.00316.76
7.0.80.0030.00716.95
7.0.70.0030.00716.75
7.0.60.0030.01116.86
7.0.50.0100.00316.82
7.0.40.0030.01214.94
7.0.30.0040.00814.89
7.0.20.0090.00614.86
7.0.10.0000.01214.75
7.0.00.0030.01014.92
5.6.400.0170.00015.79
5.6.390.0090.00316.02
5.6.380.0000.01415.62
5.6.370.0000.01315.88
5.6.360.0030.01216.16
5.6.350.0030.00915.96
5.6.340.0000.01416.20
5.6.330.0120.00915.99
5.6.320.0000.01015.75
5.6.310.0070.00315.85
5.6.300.0130.00316.10
5.6.290.0000.01815.95
5.6.280.0040.00715.84
5.6.270.0070.00315.88
5.6.260.0100.00316.01
5.6.250.0030.01515.86
5.6.240.0110.00415.79
5.6.230.0070.00715.89
5.6.220.0080.00315.96
5.6.210.0070.00715.92
5.6.200.0090.00315.85
5.6.190.0000.01516.00
5.6.180.0100.00316.08
5.6.170.0040.00815.86
5.6.160.0000.01116.04
5.6.150.0080.00515.77
5.6.140.0100.00315.73
5.6.130.0040.00715.71
5.6.120.0000.01215.76
5.6.110.0030.01215.78
5.6.100.0060.00915.92
5.6.90.0030.00915.64
5.6.80.0030.00715.65
5.6.70.0030.00615.70
5.6.60.0100.00715.65
5.6.50.0140.00015.82
5.6.40.0040.00815.75
5.6.30.0100.00315.64
5.6.20.0060.00615.83
5.6.10.0110.00415.82
5.6.00.0040.01115.75

preferences:
27.34 ms | 403 KiB | 5 Q