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 ), ); $test = array_slice( $recent_searches, -1, 3 ); var_dump( $recent_searches, $test );

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.0110.00418.30
8.3.50.0110.00316.37
8.3.40.0140.00418.70
8.3.30.0150.00018.39
8.3.20.0080.00020.34
8.3.10.0080.00023.53
8.3.00.0060.00319.55
8.2.180.0100.01018.29
8.2.170.0140.00322.96
8.2.160.0070.00719.13
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0070.00019.27
8.2.120.0030.00526.35
8.2.110.0060.00319.45
8.2.100.0060.00617.72
8.2.90.0080.00019.05
8.2.80.0000.00818.04
8.2.70.0000.01017.50
8.2.60.0000.00817.68
8.2.50.0080.00018.10
8.2.40.0050.00220.44
8.2.30.0030.00619.22
8.2.20.0040.00417.86
8.2.10.0050.00218.04
8.2.00.0000.00818.04
8.1.280.0100.01025.92
8.1.270.0070.00022.11
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0150.00621.36
8.1.230.0060.00619.09
8.1.220.0000.00917.75
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.00
8.1.180.0000.00718.10
8.1.170.0050.00318.72
8.1.160.0050.00219.00
8.1.150.0030.00720.60
8.1.140.0000.00719.46
8.1.130.0030.00318.87
8.1.120.0040.00417.29
8.1.110.0060.00317.36
8.1.100.0080.00417.42
8.1.90.0040.00417.29
8.1.80.0000.00717.37
8.1.70.0070.00017.40
8.1.60.0030.00617.49
8.1.50.0030.00517.43
8.1.40.0050.00517.40
8.1.30.0030.00517.59
8.1.20.0040.00417.51
8.1.10.0040.00417.34
8.1.00.0000.00817.35
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.40
8.0.270.0030.00317.23
8.0.260.0000.00716.74
8.0.250.0040.00216.86
8.0.240.0000.00916.88
8.0.230.0000.00716.82
8.0.220.0030.00316.81
8.0.210.0030.00316.69
8.0.200.0060.00016.89
8.0.190.0090.00316.88
8.0.180.0040.00416.79
8.0.170.0040.00416.82
8.0.160.0050.00316.86
8.0.150.0000.00716.73
8.0.140.0070.00016.67
8.0.130.0000.00513.33
8.0.120.0030.00516.68
8.0.110.0050.00316.83
8.0.100.0040.00416.69
8.0.90.0040.00416.76
8.0.80.0100.01316.81
8.0.70.0040.00416.63
8.0.60.0000.00716.79
8.0.50.0030.00516.88
8.0.30.0080.00917.00
8.0.20.0130.00817.40
8.0.10.0040.00416.95
8.0.00.0030.01316.54
7.4.330.0000.00515.55
7.4.320.0030.00316.43
7.4.300.0030.00316.44
7.4.290.0030.00416.50
7.4.280.0040.00416.40
7.4.270.0000.00716.45
7.4.260.0070.00016.51
7.4.250.0000.00816.29
7.4.240.0000.00716.48
7.4.230.0030.00316.45
7.4.220.0090.00916.37
7.4.210.0000.01516.59
7.4.200.0070.00016.33
7.4.160.0110.01416.39
7.4.150.0120.01017.40
7.4.140.0120.00817.86
7.4.130.0200.00616.51
7.4.120.0040.01416.36
7.3.330.0000.00512.92
7.3.320.0000.00512.97
7.3.310.0070.00016.13
7.3.300.0030.00316.04
7.3.290.0080.00816.09
7.3.280.0090.01116.12
7.3.270.0110.00717.40
7.3.260.0120.00516.13
7.3.250.0090.00916.41
7.3.240.0160.00416.26
7.0.200.0090.01016.66

preferences:
31.27 ms | 401 KiB | 5 Q