3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruit = ['apple', 'banana', 'canteloupe', 'durian']; [$a, ...$rest] = $fruit; var_dump($rest);

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.5.30.0200.01217.43
8.5.20.0340.00916.34
8.5.10.0390.00716.44
8.5.00.0330.00816.68
8.4.180.0130.01022.03
8.4.170.0270.01719.64
8.4.160.0290.01519.57
8.4.150.0190.00519.52
8.4.140.0370.01117.39
8.4.130.0390.00917.42
8.4.120.0380.01217.55
8.4.110.0380.01117.50
8.4.100.0400.00717.43
8.4.90.0410.00917.51
8.4.80.0400.01017.65
8.4.70.0430.00818.06
8.4.60.0390.01018.01
8.4.50.0380.00718.04
8.4.40.0440.01018.04
8.4.30.0430.00818.06
8.4.20.0440.00717.99
8.4.10.0430.00917.96
8.3.300.0380.00717.93
8.3.290.0330.01318.17
8.3.280.0340.00918.07
8.3.270.0360.00716.41
8.3.260.0350.00916.56
8.3.250.0390.00616.49
8.3.240.0380.00716.46
8.3.230.0380.00416.62
8.3.220.0400.01116.61
8.3.210.0370.00717.79
8.3.200.0300.00717.83
8.3.190.0320.00717.80
8.3.180.0380.00817.75
8.3.170.0390.01017.79
8.3.160.0400.00717.78
8.3.150.0360.00717.80
8.3.140.0340.00717.74
8.3.130.0340.00617.77
8.3.120.0240.00817.83
8.3.110.0260.00517.78
8.3.100.0360.00717.79
8.3.90.0340.00817.72
8.3.80.0380.00517.77
8.3.70.0300.00517.75
8.3.60.0340.00717.76
8.3.50.0400.00817.70
8.3.40.0340.00718.06
8.3.30.0320.00818.04
8.3.20.0300.00918.07
8.3.10.0290.00819.19
8.3.00.0180.00918.56
8.2.300.0360.00717.75
8.2.290.0210.00916.57
8.2.280.0270.01017.72
8.2.270.0350.00717.70
8.2.260.0330.00917.71
8.2.250.0330.00717.72
8.2.240.0270.00617.75
8.2.230.0290.00717.72
8.2.220.0290.00717.63
8.2.210.0280.00617.75
8.2.200.0270.00617.72
8.2.190.0270.00717.72
8.2.180.0310.00717.74
8.2.170.0330.00918.06
8.2.160.0310.00718.10
8.2.150.0330.00818.07
8.2.140.0310.00718.85
8.2.130.0290.00818.49
8.2.120.0250.00718.24
8.2.110.0290.00818.24
8.2.100.0360.00618.22
8.2.90.0310.00718.21
8.2.80.0260.00718.21
8.2.70.0260.00818.11
8.2.60.0280.00918.13
8.2.50.0260.00918.18
8.2.40.0270.00818.12
8.2.30.0330.00618.16
8.2.20.0280.00818.14
8.2.10.0300.00618.10
8.2.00.0270.00818.09
8.1.340.0290.01017.34
8.1.330.0310.00915.87
8.1.320.0290.00717.62
8.1.310.0350.00717.63
8.1.300.0300.00617.65
8.1.290.0290.00717.59
8.1.280.0330.00817.65
8.1.270.0290.00818.83
8.1.260.0270.00718.73
8.1.250.0280.00818.82
8.1.240.0260.00718.11
8.1.230.0260.00718.07
8.1.220.0280.00618.19
8.1.210.0260.00718.03
8.1.200.0240.00918.13
8.1.190.0250.00818.09
8.1.180.0260.00617.98
8.1.170.0230.00818.43
8.1.160.0200.00818.07
8.1.150.0250.00618.08
8.1.140.0230.00618.04
8.1.130.0220.00618.07
8.1.120.0250.00918.11
8.1.110.0250.00918.06
8.1.100.0280.00718.04
8.1.90.0250.00718.03
8.1.80.0240.00718.06
8.1.70.0220.00618.10
8.1.60.0240.00718.12
8.1.50.0240.00718.11
8.1.40.0240.00818.09
8.1.30.0260.00718.14
8.1.20.0240.00918.13
8.1.10.0260.00718.11
8.1.00.0260.00518.03

preferences:
172.6 ms | 1593 KiB | 7 Q