3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; const Bar = 'const'; class Bar { private const BAR = 'class'; public function show(): \Closure { return static function() { echo self::BAR; }; } } (new Bar)->show()();

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.3.60.0170.00018.43
8.3.50.0060.00916.72
8.3.40.0120.00320.33
8.3.30.0090.00618.68
8.3.20.0040.00424.18
8.3.10.0000.00724.66
8.3.00.0080.00026.16
8.2.180.0140.00716.50
8.2.170.0090.00618.82
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.20
8.2.110.0070.00320.35
8.2.100.0080.00317.72
8.2.90.0040.00419.64
8.2.80.0060.00317.63
8.2.70.0040.00417.50
8.2.60.0080.00017.91
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0080.00017.99
8.2.20.0090.00118.48
8.2.10.0100.00417.60
8.2.00.0110.00617.56
8.1.280.0140.00725.92
8.1.270.0150.00023.91
8.1.260.0170.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.07
8.1.230.0040.00823.98
8.1.220.0000.00817.74
8.1.210.0090.00019.04
8.1.200.0030.00617.13
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0080.00018.84
8.1.160.0040.00418.78
8.1.150.0040.00718.11
8.1.140.0110.00517.34
8.1.130.0110.00517.37
8.1.120.0100.00617.43
8.1.110.0110.00517.44
8.1.100.0120.00517.44
8.1.90.0100.00617.43
8.1.80.0110.00517.42
8.1.70.0120.00517.42
8.1.60.0120.00617.55
8.1.50.0120.00617.49
8.1.40.0120.00517.54
8.1.30.0120.00617.57
8.1.20.0140.00417.56
8.1.10.0130.00517.50
8.1.00.0110.00617.45
8.0.300.0000.00719.93
8.0.290.0000.00816.63
8.0.280.0000.00718.44
8.0.270.0090.00516.90
8.0.260.0100.00416.80
8.0.250.0100.00516.85
8.0.240.0100.00416.85
8.0.230.0090.00516.83
8.0.220.0100.00416.78
8.0.210.0090.00516.78
8.0.200.0090.00516.82
8.0.190.0100.00516.84
8.0.180.0100.00516.90
8.0.170.0090.00616.81
8.0.160.0100.00516.86
8.0.150.0080.00616.78
8.0.140.0100.00516.78
8.0.130.0090.00616.77
8.0.120.0090.00616.78
8.0.110.0100.00416.77
8.0.100.0100.00516.78
8.0.90.0110.00416.79
8.0.80.0100.00516.78
8.0.70.0090.00616.80
8.0.60.0100.00516.79
8.0.50.0100.00516.77
8.0.30.0110.00416.80
8.0.20.0100.00416.85
8.0.10.0100.00416.92

preferences:
44.47 ms | 401 KiB | 5 Q