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 ); 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.60.0140.00418.18
8.3.50.0110.00416.30
8.3.40.0100.00718.73
8.3.30.0040.01118.36
8.3.20.0050.00320.30
8.3.10.0040.00421.73
8.3.00.0050.00319.69
8.2.180.0090.00916.63
8.2.170.0200.00022.96
8.2.160.0070.00718.68
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00019.25
8.2.120.0040.00426.35
8.2.110.0030.00722.21
8.2.100.0050.00517.78
8.2.90.0040.00420.55
8.2.80.0050.00317.97
8.2.70.0000.00917.80
8.2.60.0030.00617.68
8.2.50.0080.00018.10
8.2.40.0040.00420.59
8.2.30.0070.00020.97
8.2.20.0000.00817.89
8.2.10.0000.00717.95
8.2.00.0030.00518.03
8.1.280.0070.01425.92
8.1.270.0120.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.34
8.1.230.0030.00720.91
8.1.220.0040.00417.79
8.1.210.0000.00818.95
8.1.200.0050.00317.22
8.1.190.0040.00417.13
8.1.180.0060.00318.10
8.1.170.0090.00018.59
8.1.160.0000.00719.00
8.1.150.0000.01018.81
8.1.140.0030.00519.50
8.1.130.0000.00718.80
8.1.120.0000.00817.32
8.1.110.0050.00217.23
8.1.100.0100.00017.27
8.1.90.0070.00017.39
8.1.80.0040.00417.25
8.1.70.0070.00017.27
8.1.60.0030.00617.33
8.1.50.0050.00317.37
8.1.40.0060.00617.44
8.1.30.0040.00417.51
8.1.20.0000.00817.52
8.1.10.0040.00417.45
8.1.00.0000.00817.39
8.0.300.0040.00419.64
8.0.290.0040.00416.63
8.0.280.0070.00018.37
8.0.270.0030.00317.06
8.0.260.0030.00316.74
8.0.250.0030.00316.86
8.0.240.0000.01016.85
8.0.230.0030.00316.81
8.0.220.0000.00716.85
8.0.210.0070.00016.83
8.0.200.0030.00316.84
8.0.190.0000.00916.85
8.0.180.0040.00416.83
8.0.170.0080.00016.85
8.0.160.0080.00016.90
8.0.150.0070.00016.77
8.0.140.0070.00016.68
8.0.130.0030.00313.32
8.0.120.0040.00416.68
8.0.110.0000.00816.81
8.0.100.0000.00716.81
8.0.90.0050.00316.73
8.0.80.0030.01316.83
8.0.70.0070.00016.85
8.0.60.0070.00016.70
8.0.50.0040.00416.75
8.0.30.0080.01016.86
8.0.20.0120.01117.40
8.0.10.0040.00416.98
8.0.00.0070.01116.57
7.4.330.0030.00315.55
7.4.320.0000.00616.55
7.4.300.0030.00316.43
7.4.290.0070.00016.47
7.4.280.0060.00316.43
7.4.270.0030.00316.52
7.4.260.0000.00716.56
7.4.250.0000.00716.52
7.4.240.0040.00416.43
7.4.230.0070.00016.59
7.4.220.0110.00616.63
7.4.210.0060.01316.51
7.4.200.0040.00416.61
7.4.160.0120.00716.39
7.4.150.0110.01517.40
7.4.140.0070.01017.86
7.4.130.0130.00616.38
7.4.120.0090.01316.47
7.3.330.0000.00612.98
7.3.320.0050.00012.94
7.3.310.0050.00316.18
7.3.300.0040.00415.98
7.3.290.0110.00516.09
7.3.280.0090.00716.10
7.3.270.0140.00417.40
7.3.260.0130.00416.20
7.3.250.0130.00716.22
7.3.240.0130.01116.25
7.0.200.0090.01816.61

preferences:
39.44 ms | 401 KiB | 5 Q