3v4l.org

run code in 300+ PHP versions simultaneously
<?php $recent_searches = array( 'test' => array( 'count' => 2, 'last_search' => 1234 ), 'test2' => array( 'count' => 2, 'last_search' => 1234 ), 'test3' => array( 'count' => 2, 'last_search' => 1234 ), 'test4' => array( 'count' => 2, 'last_search' => 1234 ), 'test5' => array( 'count' => 2, 'last_search' => 1234 ), ); $recent_searches = array_slice( $recent_searches, 2, NULL, true ); var_dump( $recent_searches );

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.70.0170.00016.75
8.3.60.0100.01018.18
8.3.50.0110.00716.37
8.3.40.0100.00718.71
8.3.30.0100.00618.38
8.3.20.0000.00820.04
8.3.10.0040.00421.83
8.3.00.0080.00019.43
8.2.180.0040.01516.75
8.2.170.0100.00622.96
8.2.160.0070.00718.98
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.45
8.2.120.0070.00026.35
8.2.110.0040.00419.21
8.2.100.0080.00417.78
8.2.90.0040.00419.08
8.2.80.0080.00017.97
8.2.70.0110.00017.50
8.2.60.0000.00817.93
8.2.50.0080.00018.10
8.2.40.0030.00620.45
8.2.30.0080.00019.05
8.2.20.0040.00417.89
8.2.10.0000.00717.98
8.2.00.0070.00017.95
8.1.280.0090.00625.92
8.1.270.0080.00022.01
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0060.00321.31
8.1.230.0070.00419.20
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0060.00316.99
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0030.00618.53
8.1.160.0040.00418.98
8.1.150.0000.01018.83
8.1.140.0030.00519.49
8.1.130.0070.00018.72
8.1.120.0000.00917.46
8.1.110.0040.00417.31
8.1.100.0040.00717.27
8.1.90.0040.00417.26
8.1.80.0000.00717.37
8.1.70.0000.00717.35
8.1.60.0000.00817.52
8.1.50.0030.00517.37
8.1.40.0100.00017.38
8.1.30.0030.00617.57
8.1.20.0000.00717.47
8.1.10.0040.00417.43
8.1.00.0070.00017.38
8.0.300.0030.00518.77
8.0.290.0000.00716.75
8.0.280.0030.00318.37
8.0.270.0030.00317.12
8.0.260.0030.00316.70
8.0.250.0000.00716.93
8.0.240.0000.01016.88
8.0.230.0040.00416.90
8.0.220.0070.00016.84
8.0.210.0070.00016.72
8.0.200.0030.00316.84
8.0.190.0060.00316.78
8.0.180.0030.00516.72
8.0.170.0040.00416.79
8.0.160.0000.00716.84
8.0.150.0000.00816.74
8.0.140.0000.00716.66
8.0.130.0030.00313.22
8.0.120.0040.00416.66
8.0.110.0080.00016.81
8.0.100.0040.00416.93
8.0.90.0070.00016.77
8.0.80.0070.01016.82
8.0.70.0050.00316.63
8.0.60.0040.00416.79
8.0.50.0020.00516.83
8.0.30.0130.00516.84
8.0.20.0120.00917.40
8.0.10.0000.00716.97
8.0.00.0180.00716.73
7.4.330.0000.00615.55
7.4.320.0070.00016.40
7.4.300.0000.00716.43
7.4.290.0040.00416.32
7.4.280.0050.00316.32
7.4.270.0000.00716.45
7.4.260.0070.00016.55
7.4.250.0030.00516.49
7.4.240.0080.00016.32
7.4.230.0000.00816.62
7.4.220.0140.00416.43
7.4.210.0090.00616.61
7.4.200.0040.00416.56
7.4.160.0090.01016.31
7.4.150.0060.01317.40
7.4.140.0090.00817.86
7.4.130.0150.00616.32
7.4.120.0100.01116.39
7.3.330.0000.00512.96
7.3.320.0000.00612.98
7.3.310.0000.00816.06
7.3.300.0070.00016.16
7.3.290.0100.00516.10
7.3.280.0080.00816.16
7.3.270.0110.00717.40
7.3.260.0100.00716.22
7.3.250.0080.00916.16
7.3.240.0120.01316.12
7.0.200.0080.01216.82

preferences:
39.02 ms | 401 KiB | 5 Q