3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DB {} class Cache {} $di['db'] = function() { return new DB(); } $di['cache'] = function() { return new Cache(); }

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)
5.4.310.0050.05012.51
5.4.300.0070.04012.52
5.4.290.0080.05012.51
5.4.280.0140.05412.41
5.4.270.0110.05012.41
5.4.260.0080.05312.41
5.4.250.0110.05312.41
5.4.240.0120.05412.41
5.4.230.0100.06112.40
5.4.220.0110.05712.40
5.4.210.0060.05712.40
5.4.200.0080.05212.40
5.4.190.0100.04912.40
5.4.180.0100.05212.39
5.4.170.0120.05412.41
5.4.160.0130.04512.40
5.4.150.0110.04812.39
5.4.140.0120.04512.09
5.4.130.0100.04812.07
5.4.120.0090.05412.04
5.4.110.0070.05712.03
5.4.100.0110.04712.03
5.4.90.0150.04712.04
5.4.80.0100.04812.03
5.4.70.0110.04512.03
5.4.60.0050.05112.02
5.4.50.0060.05312.03
5.4.40.0130.04612.02
5.4.30.0060.05412.01
5.4.20.0080.05312.00
5.4.10.0080.05112.01
5.4.00.0040.05511.50
5.3.280.0090.05712.71
5.3.270.0100.06012.72
5.3.260.0070.06112.71
5.3.250.0100.05912.72
5.3.240.0110.05812.72
5.3.230.0090.05912.71
5.3.220.0060.04612.68
5.3.210.0100.04212.68
5.3.200.0120.04712.68
5.3.190.0100.04512.68
5.3.180.0070.03712.67
5.3.170.0080.03912.67
5.3.160.0080.04512.67
5.3.150.0040.05812.67
5.3.140.0140.04812.66
5.3.130.0040.05812.66
5.3.120.0130.04812.66
5.3.110.0070.05412.66
5.3.100.0130.04512.13
5.3.90.0120.05012.11
5.3.80.0080.05712.09
5.3.70.0140.05312.09

preferences:
138.78 ms | 1394 KiB | 7 Q