3v4l.org

run code in 300+ PHP versions simultaneously
<?php $closure = function () use (&$person) { $person['name'] = 'Timmy'; $person['surname'] = 'Back'; return $person; }; $person = ['test']; var_dump($closure());

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.20.0100.00920.08
8.5.10.0110.00716.63
8.5.00.0140.00723.00
8.4.170.0070.01423.98
8.4.160.0090.01223.85
8.4.150.0080.00616.96
8.4.140.0110.01017.71
8.4.130.0260.00817.52
8.4.120.0420.00917.63
8.4.110.0490.00817.63
8.4.100.0420.00817.53
8.4.90.0420.00717.74
8.4.80.0400.00717.75
8.4.70.0380.00917.77
8.4.60.0400.00717.85
8.4.50.0360.01017.88
8.4.40.0370.00917.30
8.4.30.0290.00517.71
8.4.20.0300.00517.60
8.4.10.0400.00917.38
8.3.300.0170.00519.07
8.3.290.0100.01118.24
8.3.280.0020.00114.05
8.3.270.0090.01016.56
8.3.260.0260.00616.45
8.3.250.0290.00616.51
8.3.240.0370.00716.34
8.3.230.0390.01016.48
8.3.220.0390.01016.45
8.3.210.0280.00816.42
8.3.200.0290.01116.34
8.3.190.0340.00516.42
8.3.180.0350.00716.42
8.3.170.0410.01116.37
8.3.160.0290.00616.46
8.3.150.0260.00716.49
8.3.140.0190.00516.44
8.3.130.0250.00516.46
8.3.120.0280.00416.37
8.3.110.0280.00716.39
8.3.100.0300.00316.63
8.3.90.0280.00816.57
8.3.80.0240.00716.58
8.3.70.0290.00116.43
8.3.60.0310.00716.42
8.3.50.0420.01016.24
8.3.40.0440.00917.55
8.3.30.0320.00717.51
8.3.20.0210.00317.45
8.3.10.0150.00317.63
8.3.00.0210.00417.51
8.2.300.0140.00717.93
8.2.290.0140.00416.71
8.2.280.0230.01016.59
8.2.270.0240.00216.52
8.2.260.0190.00516.30
8.2.250.0190.00616.32
8.2.240.0210.00416.44
8.2.230.0110.00516.42
8.2.220.0230.00516.55
8.2.210.0230.00616.20
8.2.200.0220.00516.38
8.2.190.0240.00616.51
8.2.180.0280.00716.32
8.2.170.0350.00617.63
8.2.160.0290.00717.76
8.2.150.0310.00817.47
8.2.140.0320.01217.60
8.2.130.0410.00817.45
8.2.120.0340.01117.48
8.2.110.0340.00917.55
8.2.100.0370.00817.46
8.2.90.0330.00917.58
8.2.80.0340.00517.46
8.2.70.0390.00517.40
8.2.60.0250.00617.43
8.2.50.0340.00317.60
8.2.40.0370.00617.52
8.2.30.0220.01017.51
8.2.20.0310.00817.41
8.2.10.0350.00517.40
8.2.00.0330.00817.44
8.1.340.0090.01017.45

preferences:
41.92 ms | 403 KiB | 5 Q