3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['foo', 'bar']; $array = []; # won't die if an empty array var_export( // array_map(die(...), $array) # first class callable syntax array_map('die', $array) );

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.4.120.0130.00620.55
8.4.110.0120.00822.42
8.4.100.0120.00618.62
8.4.90.0140.00617.54
8.4.80.0140.00617.43
8.4.70.0110.00917.71
8.4.60.0160.00618.81
8.4.50.0050.00320.38
8.4.40.0150.00617.32
8.4.30.0040.00420.76
8.4.20.0140.00721.17
8.4.10.0320.00519.20
8.3.250.0110.00718.91
8.3.240.0110.00816.85
8.3.230.0110.00816.51
8.3.220.0070.00117.10
8.3.210.0080.00716.71
8.3.200.0070.00416.72
8.3.190.0050.00319.10
8.3.180.0030.00620.57
8.3.170.0050.00417.17
8.3.160.0090.01018.68
8.3.150.0130.00717.20
8.3.140.0310.00618.08
8.3.130.0300.00716.53
8.3.120.0330.00716.33
8.3.110.0290.00916.44
8.3.100.0350.01016.04
8.3.90.0380.00716.23
8.3.80.0370.00916.45
8.3.70.0390.00716.29
8.3.60.0360.01016.16
8.3.50.0400.00416.64
8.3.40.0310.01017.69
8.3.30.0280.00917.37
8.3.20.0290.00817.46
8.3.10.0240.00717.51
8.3.00.0190.00617.42
8.2.290.0120.00720.25
8.2.280.0100.00920.54
8.2.270.0150.00616.70
8.2.260.0220.01116.67
8.2.250.0300.00716.51
8.2.240.0270.00716.43
8.2.230.0260.01316.83
8.2.220.0220.01616.58
8.2.210.0260.01116.25
8.2.200.0320.00616.73
8.2.190.0380.00016.56
8.2.180.0310.00716.57
8.2.170.0360.00417.68
8.2.160.0240.01717.30
8.2.150.0250.01517.59
8.2.140.0370.00417.45
8.2.130.0300.01317.25
8.2.120.0290.00417.41
8.2.110.0210.01417.39
8.2.100.0210.01817.52
8.2.90.0390.00017.77
8.2.80.0350.00417.60
8.2.70.0300.00917.33
8.2.60.0250.01117.28
8.2.50.0240.00617.34
8.2.40.0230.00717.28
8.2.30.0200.01017.43
8.2.20.0340.00317.51
8.2.10.0290.00817.33
8.2.00.0270.01217.31
8.1.320.0080.00016.29

preferences:
26.97 ms | 403 KiB | 5 Q