3v4l.org

run code in 300+ PHP versions simultaneously
<?php $years = [7,8,9]; $students = [ 20=>7, 21=>11, 420=>8, 52=>12, 55=>9 ]; $students = array_filter($students, function($year) use ($years) { return in_array($year, $years); }); print_r($students);

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.0100.01018.43
8.3.50.0120.00616.26
8.3.40.0070.01418.59
8.3.30.0070.00718.68
8.3.20.0100.00721.90
8.3.10.0080.00023.61
8.3.00.0030.00621.27
8.2.180.0120.00316.63
8.2.170.0090.00622.96
8.2.160.0140.00021.98
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00820.55
8.2.120.0040.00426.35
8.2.110.0100.00020.99
8.2.100.0040.00717.72
8.2.90.0120.00018.09
8.2.80.0000.00818.22
8.2.70.0030.00517.80
8.2.60.0050.00317.50
8.2.50.0040.00418.22
8.2.40.0030.00522.12
8.2.30.0040.00419.31
8.2.20.0040.00418.03
8.2.10.0040.00417.75
8.2.00.0000.00717.99
8.1.280.0110.00425.92
8.1.270.0080.00023.79
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00322.61
8.1.230.0080.00322.67
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0080.00017.48
8.1.190.0000.00917.35
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0050.00318.86
8.1.150.0000.00820.27
8.1.140.0080.00017.71
8.1.130.0000.00919.05
8.1.120.0040.00417.52
8.1.110.0000.00717.41
8.1.100.0000.00717.47
8.1.90.0030.00517.37
8.1.80.0000.00717.44
8.1.70.0000.00817.47
8.1.60.0040.00417.46
8.1.50.0040.00417.48
8.1.40.0050.00317.50
8.1.30.0040.00417.61
8.1.20.0040.00417.68
8.1.10.0040.00417.41
8.1.00.0090.00417.49
8.0.300.0000.00719.98
8.0.290.0050.00316.75
8.0.280.0040.00418.35
8.0.270.0000.00717.28
8.0.260.0070.00016.71
8.0.250.0070.00016.93
8.0.240.0050.00316.90
8.0.230.0000.00716.95
8.0.220.0000.00716.82
8.0.210.0000.00716.88
8.0.200.0040.00416.99
8.0.190.0040.00316.83
8.0.180.0000.00716.79
8.0.170.0000.00916.84
8.0.160.0070.00016.89
8.0.150.0000.00716.91
8.0.140.0030.00316.73
8.0.130.0030.00313.28
8.0.120.0040.00416.81
8.0.110.0040.00416.93
8.0.100.0030.00316.77
8.0.90.0070.00016.68
8.0.80.0030.01116.82
8.0.70.0040.00416.86
8.0.60.0040.00416.93
8.0.50.0040.00416.99
8.0.30.0100.01517.18
8.0.20.0080.01217.40
8.0.10.0000.00716.89
8.0.00.0110.01016.77
7.4.330.0050.00015.55
7.4.320.0030.00316.60
7.4.300.0000.00616.61
7.4.290.0080.00016.47
7.4.280.0050.00216.58
7.4.270.0050.00216.58
7.4.260.0000.00716.48
7.4.250.0040.00416.44
7.4.240.0040.00416.48
7.4.230.0070.00016.62
7.4.220.0060.00316.39
7.4.210.0060.00816.60
7.4.200.0000.00716.59
7.4.160.0100.00716.48
7.4.140.0080.01117.86
7.4.130.0180.00616.48
7.4.120.0090.01116.55
7.4.110.0120.00916.49
7.4.100.0120.00616.36
7.4.90.0070.01016.34
7.4.80.0110.00919.39
7.4.70.0060.01116.59
7.4.60.0060.01216.57
7.4.50.0070.00716.32
7.4.40.0080.00816.32
7.4.00.0030.01314.99
7.3.330.0000.00513.29
7.3.320.0030.00313.27
7.3.310.0030.00316.19
7.3.300.0060.00016.25
7.3.290.0070.00016.31
7.3.280.0030.01116.29
7.3.260.0100.00916.35
7.3.240.0110.00916.40
7.3.230.0120.00416.48
7.3.210.0090.00616.47
7.3.200.0100.01216.52
7.3.190.0130.00916.29
7.3.180.0120.00616.19
7.3.170.0120.00416.25
7.3.160.0070.01116.30
7.2.330.0070.01016.69
7.2.320.0040.01416.65
7.2.310.0100.00716.44
7.2.300.0120.00416.62
7.2.290.0070.01016.37
7.2.60.0090.00616.78
7.2.30.0180.00817.82
7.2.20.0140.01317.87
7.2.10.0160.01318.06
7.2.00.0170.01617.78
7.1.200.0080.00415.66
7.1.150.0170.01116.88
7.1.140.0190.00917.07
7.1.130.0120.01016.42
7.1.120.0180.01016.76
7.1.110.0150.00715.86
7.1.100.0110.01416.17
7.1.90.0200.01015.76
7.1.80.0180.00915.70
7.1.70.0150.00815.14
7.1.60.0320.01233.27
7.1.50.0370.01232.96
7.1.40.0350.01732.69
7.1.30.0340.01632.55
7.1.20.0290.01332.51
7.1.10.0140.01014.77
7.1.00.0120.01214.87

preferences:
60.96 ms | 400 KiB | 5 Q