3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar { class a { } class b { } function a() { return 'function a'; } function b() { return 'function b'; } const a = 'const a'; const b = 'const b'; } namespace { use Foo\Bar\{a, b}; use function Foo\Bar\{a, b}; use const Foo\Bar\{a, b}; var_dump(new a()); var_dump(new b()); var_dump(a()); var_dump(b()); var_dump(a); var_dump(b); }

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.70.0090.00618.18
8.3.60.0120.00316.63
8.3.50.0050.01216.42
8.3.40.0120.00618.55
8.3.30.0100.00718.71
8.3.20.0040.00420.39
8.3.10.0040.00421.59
8.3.00.0080.00017.62
8.2.180.0100.00716.38
8.2.170.0070.01122.96
8.2.160.0080.00520.57
8.2.150.0000.00824.18
8.2.140.0000.00924.66
8.2.130.0070.00022.11
8.2.120.0000.00826.35
8.2.110.0070.00320.94
8.2.100.0080.00418.03
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0040.00417.90
8.2.50.0080.00018.10
8.2.40.0080.00020.39
8.2.30.0000.00721.02
8.2.20.0030.00518.06
8.2.10.0000.00718.00
8.2.00.0000.00718.01
8.1.280.0210.00025.92
8.1.270.0080.00022.14
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0050.00523.84
8.1.230.0030.00718.76
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0000.00818.49
8.1.160.0080.00018.96
8.1.150.0030.00620.57
8.1.140.0040.00319.52
8.1.130.0030.00318.93
8.1.120.0050.00317.46
8.1.110.0040.00417.46
8.1.100.0000.00817.37
8.1.90.0050.00317.44
8.1.80.0080.00017.41
8.1.70.0030.00317.39
8.1.60.0030.00517.58
8.1.50.0060.00317.37
8.1.40.0030.00617.46
8.1.30.0070.00417.66
8.1.20.0060.00317.57
8.1.10.0040.00417.38
8.1.00.0000.00717.42
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.32
8.0.270.0030.00317.26
8.0.260.0030.00316.83
8.0.250.0070.00016.86
8.0.240.0030.00516.95
8.0.230.0050.00316.81
8.0.220.0000.00816.82
8.0.210.0030.00316.88
8.0.200.0000.00716.85
8.0.190.0000.00916.94
8.0.180.0060.00316.77
8.0.170.0000.00716.87
8.0.160.0000.00716.93
8.0.150.0040.00416.69
8.0.140.0060.00316.70
8.0.130.0000.00513.24
8.0.120.0050.00316.80
8.0.110.0070.00016.74
8.0.100.0070.00016.96
8.0.90.0000.00716.69
8.0.80.0080.00916.86
8.0.70.0020.00516.84
8.0.60.0000.00716.73
8.0.50.0000.00816.88
8.0.30.0140.00516.96
8.0.20.0100.01317.40
8.0.10.0000.00816.76
8.0.00.0170.00316.63
7.4.330.0060.00015.55
7.4.320.0050.00216.59
7.4.300.0000.00716.45
7.4.290.0030.00316.55
7.4.280.0060.00316.55
7.4.270.0070.00016.46
7.4.260.0000.00716.52
7.4.250.0030.00316.41
7.4.240.0070.00016.49
7.4.230.0030.00316.55
7.4.220.0100.01416.37
7.4.210.0040.01716.51
7.4.200.0030.00316.38
7.4.160.0080.01016.48
7.4.150.0160.00317.40
7.4.140.0090.00917.86
7.4.130.0060.01216.71
7.4.120.0160.00616.41
7.4.110.0040.01416.52
7.4.100.0120.01216.42
7.4.90.0090.00916.52
7.4.80.0120.00719.39
7.4.70.0040.01216.50
7.4.60.0000.01716.46
7.4.50.0080.00816.46
7.4.40.0060.01016.34
7.4.30.0080.00816.55
7.4.00.0080.00814.75
7.3.330.0050.00013.22
7.3.320.0060.00013.21
7.3.310.0000.00716.09
7.3.300.0030.00316.08
7.3.290.0020.01416.21
7.3.280.0070.00916.21
7.3.270.0110.00517.40
7.3.260.0100.00916.33
7.3.250.0090.01216.39
7.3.240.0120.00616.58
7.3.230.0100.01316.35
7.3.210.0030.02116.54
7.3.200.0090.00916.23
7.3.190.0030.01416.62
7.3.180.0180.00716.43
7.3.170.0110.00416.33
7.3.160.0090.00616.47
7.2.330.0040.01416.58
7.2.320.0060.01216.69
7.2.310.0090.00916.61
7.2.300.0120.00616.71
7.2.290.0100.01016.47
7.2.60.0090.00316.64
7.2.00.0090.00919.49
7.1.200.0120.00015.76
7.1.100.0060.00917.95
7.1.70.0100.00717.07
7.1.60.0220.01534.89
7.1.50.0160.02634.75
7.1.40.0230.01334.32
7.1.30.0140.02234.27
7.1.20.0200.01734.48
7.1.10.0060.01216.52
7.1.00.0040.01516.59
7.0.200.0070.01116.57
7.0.190.0150.00316.75
7.0.180.0070.01016.05
7.0.170.0070.01016.10
7.0.160.0070.01016.07
7.0.150.0070.01016.24
7.0.140.0010.01616.12
7.0.130.0020.01416.37
7.0.120.0060.01216.30
7.0.110.0030.01516.20
7.0.100.0050.01416.16
7.0.90.0120.00616.08
7.0.80.0000.01716.14
7.0.70.0060.01316.19
7.0.60.0090.00816.05
7.0.50.0070.01116.27
7.0.40.0040.01516.52
7.0.30.0020.01716.38
7.0.20.0090.00916.21
7.0.10.0090.00916.34
7.0.00.0070.01216.38

preferences:
49.35 ms | 401 KiB | 5 Q