3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 1 => 'admin', '5d1acff7-51f5-d10a-8807-5ce3a25f3f01' => 'atul', '9324e078-e651-09ab-856c-5d00cf1d6302' => 'tushar', '3e4d9711-e4e0-f9de-8d40-5d021f3137fb' => 'praful', 'b283b589-c527-389f-498b-5cf0ea2338e1' => 'suraj' ]; $values = array_values($array); $offset = array_search('atul', $values); if ($offset !== false && isset($values[++$offset])) { $element = array_slice($array, $offset, 1, true); echo key($element) , " : " , current($element); } else { echo "not found or no next"; }

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.0100.00718.56
8.3.50.0090.00817.44
8.3.40.0070.00718.79
8.3.30.0140.00718.73
8.3.20.0080.00021.73
8.3.10.0030.00521.95
8.3.00.0040.00423.64
8.2.180.0150.00616.63
8.2.170.0140.00022.96
8.2.160.0040.01119.16
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00426.16
8.2.110.0070.00319.39
8.2.100.0090.00317.91
8.2.90.0030.00618.34
8.2.80.0030.00518.05
8.2.70.0000.00818.05
8.2.60.0080.00017.93
8.2.50.0040.00518.07
8.2.40.0020.00919.24
8.2.30.0060.00418.68
8.2.20.0130.00118.08
8.2.10.0080.00618.67
8.2.00.0080.00618.68
8.1.280.0040.01125.92
8.1.270.0080.00022.13
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0000.00922.45
8.1.230.0080.00421.03
8.1.220.0030.00517.74
8.1.210.0080.00018.84
8.1.200.0090.00017.35
8.1.190.0030.00517.10
8.1.180.0050.01418.05
8.1.170.0100.00518.28
8.1.160.0090.00618.49
8.1.150.0130.00318.49
8.1.140.0050.00918.47
8.1.130.0110.00417.71
8.1.120.0120.00317.72
8.1.110.0090.00417.78
8.1.100.0060.00717.76
8.1.90.0100.00417.76
8.1.80.0050.00917.74
8.1.70.0120.00217.76
8.1.60.0100.00517.82
8.1.50.0050.00917.75
8.1.40.0090.00717.78
8.1.30.0100.00517.83
8.1.20.0090.00518.48
8.1.10.0080.00717.81
8.1.00.0110.00417.80
8.0.300.0070.00019.89
8.0.290.0040.00416.75
8.0.280.0000.01018.29
8.0.270.0090.00417.39
8.0.260.0100.00417.42
8.0.250.0110.00217.50
8.0.240.0080.00617.50
8.0.230.0120.00217.45
8.0.220.0070.00817.42
8.0.210.0110.00317.46
8.0.200.0060.00717.51
8.0.190.0100.00417.44
8.0.180.0080.00517.46
8.0.170.0050.00917.47
8.0.160.0120.00117.49
8.0.150.0090.00517.37
8.0.140.0130.00017.39
8.0.130.0120.00215.70
8.0.120.0120.00217.46
8.0.110.0100.00517.46
8.0.100.0090.00617.38
8.0.90.0080.00617.46
8.0.80.0110.00917.50
8.0.70.0080.00517.50
8.0.60.0050.00917.42
8.0.50.0070.00717.42
8.0.30.0100.01117.63
8.0.20.0080.01517.50
8.0.10.0120.00117.56
8.0.00.0120.00717.08
7.4.330.0100.00016.80
7.4.320.0090.00317.33
7.4.300.0120.00117.28
7.4.290.0090.00517.27
7.4.280.0080.00517.32
7.4.270.0070.00617.35
7.4.260.0120.00217.28
7.4.250.0140.00017.24
7.4.240.0090.00416.97
7.4.230.0110.00417.22
7.4.220.0050.00917.28
7.4.210.0090.01116.93
7.4.200.0070.00617.37
7.4.190.0140.00618.05
7.4.180.0100.01018.05
7.4.160.0090.00816.83
7.4.150.0160.00518.05
7.4.140.0120.00717.95
7.4.130.0140.00517.29
7.4.120.0150.00417.29
7.4.110.0150.00717.16
7.4.100.0130.00517.25
7.4.90.0130.00617.29
7.4.80.0110.00818.72
7.4.70.0150.00817.29
7.4.60.0130.00517.22
7.4.50.0090.00717.23
7.4.40.0120.01017.21
7.4.30.0140.00818.05
7.4.20.0180.00818.05
7.4.10.0110.00616.52
7.4.00.0070.01115.81
7.3.330.0110.00315.57
7.3.320.0080.00615.61
7.3.310.0070.00717.19
7.3.300.0140.00017.21
7.3.290.0080.00517.12
7.3.280.0100.00616.86
7.3.270.0210.00018.05
7.3.260.0130.00716.65
7.3.250.0180.00318.05
7.3.240.0110.00816.69
7.3.230.0110.00717.19
7.3.220.0110.01018.05
7.3.210.0120.00917.28
7.3.200.0150.00417.22
7.3.190.0110.00917.34
7.3.180.0140.00417.28
7.3.170.0120.00817.29
7.3.160.0150.00817.25
7.3.150.0120.00718.05
7.3.140.0090.01218.05
7.3.130.0080.01016.37
7.3.120.0090.01116.10
7.3.110.0100.00816.10
7.3.100.0090.00716.02
7.3.90.0070.00816.00
7.3.80.0090.00716.10
7.3.70.0070.00716.06
7.3.60.0070.01015.69
7.3.50.0080.00615.78
7.3.40.0060.00715.72
7.3.30.0030.01215.78
7.3.20.0080.00617.22
7.3.10.0070.00817.13
7.3.00.0080.00717.13
7.2.340.0150.00318.05
7.2.330.0140.00617.39
7.2.320.0080.00917.40
7.2.310.0100.00917.25
7.2.300.0120.00917.25
7.2.290.0120.00617.26
7.2.280.0100.01018.05
7.2.270.0140.00718.05
7.2.260.0100.01016.59
7.2.250.0070.01016.19
7.2.240.0110.00616.26
7.2.230.0080.00716.09
7.2.220.0040.01016.05
7.2.210.0090.00616.21
7.2.200.0040.01116.16
7.2.190.0060.01015.90
7.2.180.0080.00715.89
7.2.170.0090.00615.92
7.2.160.0050.00815.91
7.2.150.0080.00717.46
7.2.140.0070.00717.49
7.2.130.0090.00717.48
7.2.120.0070.00917.48
7.2.110.0080.00717.38
7.2.100.0080.00717.46
7.2.90.0100.00717.48
7.2.80.0070.00817.40
7.2.70.0090.00617.55
7.2.60.0110.00717.39
7.2.50.0060.01017.50
7.2.40.0060.01017.48
7.2.30.0090.00717.56
7.2.20.0070.00717.35
7.2.10.0060.00817.49
7.2.00.0070.00717.55
7.1.330.0070.00916.73
7.1.320.0050.01116.73
7.1.310.0040.01016.72
7.1.300.0100.00416.58
7.1.290.0090.00516.55
7.1.280.0080.00716.48
7.1.270.0050.00816.56
7.1.260.0090.00516.55
7.1.250.0080.00616.51
7.1.240.0110.00316.70
7.1.230.0080.00816.71
7.1.220.0080.00616.65
7.1.210.0100.00516.79
7.1.200.0080.00816.73
7.1.190.0100.00616.79
7.1.180.0070.00616.68
7.1.170.0070.00716.84
7.1.160.0060.00816.82
7.1.150.0050.01016.77
7.1.140.0080.00516.87
7.1.130.0050.01016.72
7.1.120.0050.00716.84
7.1.110.0060.00716.76
7.1.100.0080.00316.67
7.1.90.0070.00616.68
7.1.80.0060.00816.72
7.1.70.0070.00516.88
7.1.60.0070.00716.72
7.1.50.0070.00816.81
7.1.40.0120.00316.79
7.1.30.0090.00716.78
7.1.20.0050.00616.71
7.1.10.0110.00116.75
7.1.00.0060.00716.62

preferences:
58.62 ms | 401 KiB | 5 Q