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])) { var_export(array_slice($array, $offset, 1, true)); } 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.0070.00718.31
8.3.50.0100.01016.53
8.3.40.0110.00418.83
8.3.30.0070.00718.74
8.3.20.0070.00021.94
8.3.10.0030.00521.78
8.3.00.0080.00023.30
8.2.180.0030.01616.50
8.2.170.0060.00822.96
8.2.160.0070.00719.50
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00019.95
8.2.110.0090.00022.11
8.2.100.0120.00017.91
8.2.90.0040.00417.90
8.2.80.0040.00419.14
8.2.70.0040.00417.63
8.2.60.0070.00018.05
8.2.50.0000.00818.07
8.2.40.0020.00518.35
8.2.30.0000.00718.18
8.2.20.0040.00417.98
8.2.10.0080.00019.23
8.2.00.0040.00419.17
8.1.280.0110.00325.92
8.1.270.0000.00723.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00019.26
8.1.230.0090.00320.66
8.1.220.0040.00417.74
8.1.210.0050.00318.88
8.1.200.0030.00617.23
8.1.190.0090.00017.35
8.1.180.0110.00018.10
8.1.170.0070.00018.89
8.1.160.0030.00618.79
8.1.150.0000.00718.74
8.1.140.0000.00820.59
8.1.130.0000.00717.44
8.1.120.0030.00317.45
8.1.110.0040.00417.33
8.1.100.0000.00717.48
8.1.90.0000.00717.34
8.1.80.0030.00717.46
8.1.70.0070.00017.48
8.1.60.0000.00717.52
8.1.50.0000.00717.54
8.1.40.0040.00417.50
8.1.30.0030.00517.71
8.1.20.0080.00017.63
8.1.10.0000.00817.38
8.1.00.0080.00017.34
8.0.300.0030.00620.08
8.0.290.0000.00916.63
8.0.280.0030.00318.44
8.0.270.0030.00317.25
8.0.260.0070.00016.76
8.0.250.0000.00716.93
8.0.240.0040.00416.99
8.0.230.0030.00316.82
8.0.220.0070.00016.75
8.0.210.0000.00716.84
8.0.200.0000.00716.96
8.0.190.0050.00216.95
8.0.180.0000.00816.93
8.0.170.0050.00316.91
8.0.160.0050.00316.93
8.0.150.0040.00416.86
8.0.140.0000.00816.82
8.0.130.0030.00313.39
8.0.120.0000.00716.92
8.0.110.0030.00516.87
8.0.100.0070.00016.93
8.0.90.0000.00816.71
8.0.80.0120.00316.90
8.0.70.0040.00416.86
8.0.60.0040.00416.68
8.0.50.0040.00316.77
8.0.30.0140.01117.04
8.0.20.0070.01417.10
8.0.10.0040.00416.96
8.0.00.0090.00816.79
7.4.330.0050.00015.55
7.4.320.0000.00616.54
7.4.300.0030.00316.50
7.4.290.0040.00416.60
7.4.280.0000.00816.63
7.4.270.0030.00316.63
7.4.260.0000.00716.38
7.4.250.0070.00016.50
7.4.240.0050.00216.62
7.4.230.0000.00716.24
7.4.220.0000.00816.49
7.4.210.0070.00816.59
7.4.200.0000.00716.33
7.4.160.0060.01016.45
7.4.130.0170.00716.64
7.4.120.0030.01616.52
7.4.110.0120.00616.33
7.4.100.0000.01616.47
7.4.90.0040.01216.63
7.4.80.0150.00619.39
7.4.70.0120.00616.43
7.4.60.0090.00916.53
7.4.50.0030.01316.20
7.4.40.0060.01216.47
7.4.00.0090.00714.90
7.3.330.0030.00313.12
7.3.320.0050.00013.21
7.3.310.0080.00016.18
7.3.300.0030.00316.28
7.3.290.0000.00716.34
7.3.280.0130.00316.27
7.3.260.0100.00816.38
7.3.240.0110.00916.51
7.3.230.0110.00616.55
7.3.210.0040.01416.34
7.3.200.0080.00816.47
7.3.190.0120.00916.25
7.3.180.0080.00816.48
7.3.170.0060.00916.38
7.3.160.0140.00716.45
7.3.120.0100.00714.93
7.3.110.0030.01214.84
7.3.100.0100.00315.01
7.3.90.0070.00314.79
7.3.80.0090.00014.72
7.3.70.0000.01414.60
7.3.60.0060.00614.81
7.3.50.0090.00514.66
7.3.40.0080.00514.65
7.3.30.0060.00914.79
7.3.20.0090.00816.55
7.3.10.0100.00716.80
7.3.00.0100.00516.54
7.2.330.0120.00616.68
7.2.320.0140.00716.73
7.2.310.0060.01016.63
7.2.300.0100.00716.79
7.2.290.0060.01216.88
7.2.250.0070.01415.11
7.2.240.0030.01415.11
7.2.230.0030.01215.18
7.2.220.0060.01315.00
7.2.210.0060.01214.91
7.2.200.0060.01215.02
7.2.190.0050.01015.06
7.2.180.0060.00814.94
7.2.170.0110.00715.11
7.2.160.0040.01114.90
7.2.150.0110.00416.84
7.2.140.0080.00816.93
7.2.130.0100.00717.03
7.2.120.0060.01016.96
7.2.110.0070.00716.81
7.2.100.0090.00316.92
7.2.90.0090.00616.90
7.2.80.0040.01117.02
7.2.70.0090.00616.97
7.2.60.0110.00416.97
7.2.50.0110.00616.92
7.2.40.0060.01016.90
7.2.30.0110.00617.05
7.2.20.0070.01017.00
7.2.10.0070.01016.99
7.2.00.0090.00617.01
7.1.330.0030.01216.00
7.1.320.0070.00415.55
7.1.310.0060.00615.88
7.1.300.0080.00515.78
7.1.290.0070.00515.65
7.1.280.0070.00715.80
7.1.270.0100.00615.67
7.1.260.0070.00815.72
7.1.250.0110.00415.86

preferences:
62.83 ms | 401 KiB | 5 Q