3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['monkey' => 1, 'giraffe' => 2, 'lion' => 3, 'walrus' => 4, 'zebra' => 5, 'narwhal' => 6]; $arr += array_splice($arr, array_search('rhino', array_keys($arr)), 1); var_export($arr);

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.120.0120.00820.54
8.4.110.0140.00718.77
8.4.100.0130.00717.67
8.4.90.0130.00818.71
8.4.80.0150.00517.86
8.4.70.0140.00617.52
8.4.60.0160.00518.81
8.4.50.0110.00817.46
8.4.40.0030.01720.49
8.4.30.0100.01018.54
8.4.20.0040.01119.39
8.4.10.0070.01321.75
8.3.250.0110.00418.61
8.3.240.0090.01016.49
8.3.230.0120.00716.41
8.3.220.0080.01017.13
8.3.210.0120.00816.61
8.3.200.0050.00416.53
8.3.190.0050.00316.95
8.3.180.0120.01016.66
8.3.170.0160.00318.79
8.3.160.0110.00718.43
8.3.150.0140.00420.49
8.3.140.0040.00416.44
8.3.130.0080.00016.35
8.3.120.0040.00420.84
8.3.110.0030.00920.94
8.3.100.0080.00824.06
8.3.90.0110.00426.77
8.3.80.0040.00818.55
8.3.70.0090.00616.50
8.3.60.0040.01118.28
8.3.50.0140.00416.64
8.3.40.0030.01320.33
8.3.30.0100.01018.85
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0130.00520.54
8.2.280.0130.00818.47
8.2.270.0060.01217.14
8.2.260.0070.00716.92
8.2.250.0060.01216.55
8.2.240.0110.00719.00
8.2.230.0030.00622.58
8.2.220.0000.00837.54
8.2.210.0070.00026.77
8.2.200.0000.00916.38
8.2.190.0030.01016.58
8.2.180.0080.01116.32
8.2.170.0070.00718.63
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0000.00924.66
8.2.130.0050.00326.16
8.2.120.0120.00019.30
8.2.110.0060.00319.27
8.2.100.0080.00419.63
8.2.90.0040.00419.18
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0000.00817.80
8.2.50.0040.00718.07
8.2.40.0040.00418.03
8.2.30.0040.00418.00
8.2.20.0080.00417.55
8.2.10.0110.00517.61
8.2.00.0160.00017.65
8.1.330.0130.00621.96
8.1.320.0080.01216.04
8.1.310.0060.00318.71
8.1.300.0060.00317.70
8.1.290.0090.00030.84
8.1.280.0070.00725.92
8.1.270.0050.00324.66
8.1.260.0030.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00319.16
8.1.230.0070.00422.20
8.1.220.0100.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0000.00718.87
8.1.150.0100.00717.25
8.1.140.0120.00417.37
8.1.130.0120.00317.37
8.1.120.0120.00217.45
8.1.110.0070.00717.41
8.1.100.0110.00317.45
8.1.90.0080.00017.36
8.1.80.0000.00817.35
8.1.70.0040.00417.38
8.1.60.0050.00317.48
8.1.50.0060.00317.42
8.1.40.0080.00417.56
8.1.30.0080.00317.46
8.1.20.0050.00517.42
8.1.10.0050.00717.36
8.1.00.0050.00517.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00020.07
8.0.270.0100.00216.70
8.0.260.0000.00916.83
8.0.250.0080.00016.87
8.0.240.0060.00316.85
8.0.230.0000.00916.84
8.0.220.0030.00616.73
8.0.210.0050.00516.70
8.0.200.0090.00316.72
8.0.190.0130.00016.78
8.0.180.0000.01316.68
8.0.170.0050.00516.76
8.0.160.0130.00016.75
8.0.150.0020.00716.72
8.0.140.0000.00916.69
8.0.130.0030.00816.74
8.0.120.0080.00316.71
8.0.110.0060.00616.51
8.0.100.0080.00316.71
8.0.90.0140.00016.75
8.0.80.0000.01516.78
8.0.70.0110.00016.66
8.0.60.0130.00016.71
8.0.50.0130.00016.71
8.0.30.0040.00416.74
8.0.20.0100.00016.86
8.0.10.0060.00316.84

preferences:
32.14 ms | 403 KiB | 5 Q