3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('CL', function () { echo "hello\n"; }); class Foo { public const \Closure CL = CL; } (Foo::CL)();

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.130.0140.00817.93
8.4.120.0060.00320.31
8.4.110.0130.00618.65
8.4.100.0060.00320.48
8.4.90.0050.00418.95
8.4.80.0070.00118.99
8.4.70.0060.01018.16
8.4.60.0110.01018.98
8.4.50.0070.00218.93
8.4.40.0060.01318.63
8.4.30.0130.00618.87
8.4.20.0200.00020.45
8.4.10.0000.00919.37
8.3.260.0110.00816.42
8.3.250.0120.00818.85
8.3.240.0090.01116.47
8.3.230.0060.00217.20
8.3.220.0110.00718.78
8.3.210.0030.00516.66
8.3.200.0070.00216.58
8.3.190.0100.00916.89
8.3.180.0060.00217.29
8.3.170.0150.00320.58
8.3.160.0110.00717.11
8.3.150.0030.01517.05
8.3.140.0040.00416.79
8.3.130.0030.00518.42
8.3.120.0040.00420.59
8.3.110.0040.00416.43
8.3.100.0090.00016.60
8.3.90.0030.00616.66
8.3.60.0320.01225.92
8.3.50.0070.01425.92
8.3.40.0320.01625.92
8.3.30.0410.00725.92
8.3.20.0310.01625.92
8.3.10.0340.00925.92
8.3.00.0410.00325.92
8.2.290.0090.00920.24
8.2.280.0100.00518.31
8.2.270.0070.00017.26
8.2.260.0060.00318.16
8.2.250.0040.00416.50
8.2.240.0040.01116.33
8.2.230.0150.00320.94
8.2.220.0090.00016.65
8.2.210.0080.00016.69
8.2.180.0370.00425.92
8.2.170.0470.00025.92
8.2.160.0310.00925.92
8.2.150.0340.01025.92
8.2.140.0360.01325.92
8.2.130.0350.01825.92
8.2.120.0390.01225.92
8.2.110.0340.00825.92
8.2.100.0330.00525.92
8.2.90.0330.00725.92
8.2.80.0300.01025.92
8.2.70.0300.01025.92
8.2.60.0330.00725.92
8.2.50.0460.00725.92
8.2.40.0460.00825.92
8.2.30.0350.00825.92
8.2.20.0390.01025.92
8.2.10.0260.01525.92
8.2.00.0330.00625.92
8.1.330.0140.00421.69
8.1.320.0110.00918.38
8.1.310.0040.00418.39
8.1.300.0090.00917.68
8.1.280.0400.00325.92
8.1.270.0420.00725.92
8.1.260.0430.00625.92
8.1.250.0400.00825.92
8.1.240.0310.01225.92
8.1.230.0360.00725.92
8.1.220.0350.00725.92
8.1.210.0460.01125.92
8.1.200.0310.01325.92
8.1.190.0310.01025.92
8.1.180.0270.01525.92
8.1.170.0360.00625.92
8.1.160.0350.00725.92
8.1.150.0340.00925.92
8.1.140.0340.01125.92
8.1.130.0380.00325.92
8.1.120.0330.00425.92
8.1.110.0330.00425.92
8.1.100.0290.00625.92
8.1.90.0340.00925.92
8.1.80.0350.00725.92
8.1.70.0360.00625.92
8.1.60.0370.00925.92
8.1.50.0370.01825.92
8.1.40.0410.00625.92
8.1.30.0370.01125.92
8.1.20.0350.00425.92
8.1.10.0340.00625.92
8.1.00.0360.00425.92

preferences:
26.45 ms | 403 KiB | 5 Q