3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class FooClass { public function test() { echo "Hello World"; } } } namespace Bar { $className = 'Foo\\FooClass'; $a = new $className(); $a->test(); $b = new Foo\FooClass(); $b->test(); }

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.0110.00716.63
8.3.50.0120.00921.18
8.3.40.0000.01418.89
8.3.30.0150.00018.73
8.3.20.0050.00220.07
8.3.10.0040.00421.72
8.3.00.0060.00321.85
8.2.180.0110.01118.41
8.2.170.0140.00422.96
8.2.160.0100.00720.52
8.2.150.0070.00024.18
8.2.140.0120.00624.66
8.2.130.0070.00021.08
8.2.120.0050.00226.35
8.2.110.0070.00421.10
8.2.100.0080.00318.05
8.2.90.0070.00019.17
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0070.00018.05
8.2.50.0070.00418.09
8.2.40.0060.00320.55
8.2.30.0050.00319.43
8.2.20.0040.00417.74
8.2.10.0070.00018.00
8.2.00.0040.00418.10
8.1.280.0060.00925.92
8.1.270.0120.00621.92
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.57
8.1.230.0030.00719.04
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.36
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.52
8.1.160.0040.00420.64
8.1.150.0000.00820.53
8.1.140.0050.00319.54
8.1.130.0000.00817.64
8.1.120.0030.00317.42
8.1.110.0000.00717.43
8.1.100.0000.00817.37
8.1.90.0040.00417.38
8.1.80.0000.00717.29
8.1.70.0070.00017.44
8.1.60.0000.00717.46
8.1.50.0050.00517.50
8.1.40.0040.00417.51
8.1.30.0000.00817.65
8.1.20.0070.00017.53
8.1.10.0030.00617.52
8.1.00.0000.00817.51
8.0.300.0080.00018.77
8.0.290.0000.00816.63
8.0.280.0030.00318.30
8.0.270.0070.00017.24
8.0.260.0050.00317.19
8.0.250.0030.00316.95
8.0.240.0000.00916.91
8.0.230.0030.00316.95
8.0.220.0000.00716.91
8.0.210.0040.00416.81
8.0.200.0060.00016.83
8.0.190.0060.00617.00
8.0.180.0030.00516.96
8.0.170.0050.00316.84
8.0.160.0000.00716.87
8.0.150.0030.00316.91
8.0.140.0000.00716.73
8.0.130.0030.00313.35
8.0.120.0040.00416.89
8.0.110.0030.00516.88
8.0.100.0040.00316.76
8.0.90.0050.00316.75
8.0.80.0060.00916.80
8.0.70.0000.00816.73
8.0.60.0080.00016.89
8.0.50.0050.00216.86
8.0.30.0130.00716.98
8.0.20.0060.01217.40
8.0.10.0000.00716.90
8.0.00.0120.00716.76
7.4.330.0000.00516.89
7.4.320.0000.00716.34
7.4.300.0040.00416.51
7.4.290.0030.00316.58
7.4.280.0060.00316.49
7.4.270.0030.00316.51
7.4.260.0000.00816.49
7.4.250.0070.00016.50
7.4.240.0030.00316.51
7.4.230.0000.00716.48
7.4.220.0120.00616.37
7.4.210.0120.00316.63
7.4.200.0000.00716.61
7.4.160.0090.00616.46
7.4.150.0080.01117.40
7.4.140.0090.01017.86
7.4.130.0050.01216.43
7.4.120.0150.00616.60
7.4.110.0100.00716.36
7.4.100.0100.00716.42
7.4.90.0090.01216.50
7.4.80.0100.00719.39
7.4.70.0070.01016.49
7.4.60.0080.01116.68
7.4.50.0040.01116.48
7.4.40.0100.00716.38
7.4.30.0110.00616.63
7.4.00.0080.00715.01
7.3.330.0000.00513.41
7.3.320.0000.00613.21
7.3.310.0030.00316.44
7.3.300.0030.00316.43
7.3.290.0050.01216.40
7.3.280.0100.00716.40
7.3.270.0080.00817.40
7.3.260.0140.00416.60
7.3.250.0100.00816.42
7.3.240.0050.01516.39
7.3.230.0100.00716.39
7.3.210.0000.01716.63
7.3.200.0090.00919.39
7.3.190.0100.00716.39
7.3.180.0060.01416.50
7.3.170.0110.01216.41
7.3.160.0100.00716.50
7.3.120.0090.01215.00
7.3.110.0070.01015.04
7.3.100.0100.00715.04
7.3.90.0090.00315.13
7.3.80.0030.00614.57
7.3.70.0000.01114.84
7.3.60.0030.01214.90
7.3.50.0060.00314.98
7.3.40.0100.00314.76
7.3.30.0030.00914.85
7.3.20.0100.00716.48
7.3.10.0050.00716.63
7.3.00.0070.00516.72
7.2.330.0140.00716.62
7.2.320.0130.01016.59
7.2.310.0080.00816.36
7.2.300.0170.00316.65
7.2.290.0080.00816.64
7.2.250.0130.00614.79
7.2.240.0070.01314.84
7.2.230.0070.01115.17
7.2.220.0030.00715.20
7.2.210.0040.00414.87
7.2.200.0090.00615.00
7.2.190.0060.00915.00
7.2.180.0030.00914.82
7.2.170.0000.01015.00
7.2.130.0030.01316.82
7.2.120.0030.01316.71
7.2.110.0110.00416.96
7.2.100.0000.01616.96
7.2.90.0030.01016.97
7.2.80.0060.00916.94
7.2.70.0040.01216.92
7.2.60.0030.01016.95
7.2.50.0030.00816.98
7.2.40.0050.00517.01
7.2.30.0000.01016.96
7.2.20.0070.00716.84
7.2.10.0040.01216.96
7.2.00.0040.01018.08
7.1.330.0090.00615.71
7.1.320.0000.01415.76
7.1.310.0080.00315.55
7.1.300.0030.00615.65
7.1.290.0140.00015.86
7.1.280.0030.00915.45
7.1.270.0090.00615.77
7.1.260.0070.00715.75
7.1.250.0030.01215.75
7.1.200.0070.00415.54
7.1.100.0040.00717.77
7.1.70.0060.00317.18
7.1.60.0070.01719.40
7.1.50.0070.02016.57
7.1.00.0070.07322.36
7.0.200.0430.00614.68
7.0.60.0170.06721.63
7.0.50.0070.04717.88
7.0.40.0000.05020.04
7.0.30.0230.04320.08
7.0.20.0230.04720.31
7.0.10.0030.08320.06
7.0.00.0030.09020.12
5.6.280.0030.05021.02
5.6.210.0070.07720.73
5.6.200.0070.05718.12
5.6.190.0100.08320.39
5.6.180.0370.07020.33
5.6.170.0170.04720.45
5.6.160.0000.05020.49
5.6.150.0000.05718.19
5.6.140.0030.04318.27
5.6.130.0070.06018.18
5.6.120.0070.04321.14
5.6.110.0170.08321.06
5.6.100.0100.08021.01
5.6.90.0100.04321.00
5.6.80.0100.06320.57
5.5.350.0030.08020.45
5.5.340.0030.05718.00
5.5.330.0270.03720.19
5.5.320.0430.04320.24
5.5.310.0230.07720.23
5.5.300.0030.07017.92
5.5.290.0100.03317.99
5.5.280.0070.08320.78
5.5.270.0030.09020.86
5.5.260.0030.04320.76
5.5.250.0000.08720.79
5.5.240.0230.07320.24

preferences:
57.06 ms | 401 KiB | 5 Q