3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class Bar {} namespace Foo\Baz; use Foo\Bar; class Baz { public function __construct(){ $str1 = "Bar"; $str2 = "\\Foo\\Bar"; $a = new Bar; var_dump($a); $b = new $str1; var_dump($b); $c = new $str2; var_dump($c); } } $baz = new Baz();

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.0070.01416.63
8.3.50.0110.01022.05
8.3.40.0040.01118.83
8.3.30.0070.00718.84
8.3.20.0050.00220.24
8.3.10.0040.00423.50
8.3.00.0040.00419.38
8.2.180.0090.00918.24
8.2.170.0140.00022.96
8.2.160.0150.00320.46
8.2.150.0000.01024.18
8.2.140.0050.00324.66
8.2.130.0050.00317.38
8.2.120.0000.00826.35
8.2.110.0000.01022.08
8.2.100.0080.00317.78
8.2.90.0030.00519.04
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0030.00617.67
8.2.50.0050.00318.07
8.2.40.0080.00019.32
8.2.30.0000.00720.68
8.2.20.0050.00417.71
8.2.10.0040.00418.11
8.2.00.0040.00417.94
8.1.280.0150.00025.92
8.1.270.0000.00924.01
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0070.00424.02
8.1.230.0040.00719.12
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.22
8.1.190.0070.00317.35
8.1.180.0040.00418.10
8.1.170.0080.00018.78
8.1.160.0070.00021.88
8.1.150.0020.00518.88
8.1.140.0040.00419.51
8.1.130.0050.00317.69
8.1.120.0040.00417.43
8.1.110.0070.00017.34
8.1.100.0070.00017.40
8.1.90.0000.00817.40
8.1.80.0050.00317.36
8.1.70.0040.00417.27
8.1.60.0040.00417.49
8.1.50.0040.00417.54
8.1.40.0000.00817.50
8.1.30.0030.00617.66
8.1.20.0040.00417.72
8.1.10.0040.00417.46
8.1.00.0030.00617.41
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.40
8.0.270.0000.00817.31
8.0.260.0000.00817.19
8.0.250.0030.00316.97
8.0.240.0070.00016.93
8.0.230.0040.00416.97
8.0.220.0000.00716.94
8.0.210.0030.00316.86
8.0.200.0030.00316.93
8.0.190.0040.00416.85
8.0.180.0000.00716.99
8.0.170.0040.00416.98
8.0.160.0050.00216.95
8.0.150.0080.00016.81
8.0.140.0000.00716.85
8.0.130.0030.00313.36
8.0.120.0050.00316.86
8.0.110.0000.00816.79
8.0.100.0000.00816.93
8.0.90.0000.00816.71
8.0.80.0000.01916.91
8.0.70.0000.00816.71
8.0.60.0000.00716.77
8.0.50.0060.00316.76
8.0.30.0100.00817.13
8.0.20.0110.00817.40
8.0.10.0040.00416.82
8.0.00.0070.01116.66
7.4.330.0000.00516.77
7.4.320.0030.00316.44
7.4.300.0060.00016.63
7.4.290.0030.00316.54
7.4.280.0030.00616.41
7.4.270.0000.00616.54
7.4.260.0040.00416.47
7.4.250.0050.00216.59
7.4.240.0050.00316.51
7.4.230.0030.00316.65
7.4.220.0090.00916.54
7.4.210.0080.01016.58
7.4.200.0040.00416.54
7.4.160.0080.00816.63
7.4.150.0110.00717.40
7.4.140.0110.01117.86
7.4.130.0060.01116.53
7.4.120.0060.01416.50
7.4.110.0130.01016.55
7.4.100.0160.00816.63
7.4.90.0100.00716.41
7.4.80.0130.01019.39
7.4.70.0160.00416.45
7.4.60.0080.00816.48
7.4.50.0090.00616.46
7.4.40.0100.01316.45
7.4.30.0060.01616.46
7.4.00.0080.00814.73
7.3.330.0000.00513.32
7.3.320.0000.00513.20
7.3.310.0070.00016.46
7.3.300.0040.00416.36
7.3.290.0050.00216.32
7.3.280.0090.00716.37
7.3.270.0060.01017.40
7.3.260.0120.01216.30
7.3.250.0080.01216.41
7.3.240.0090.00716.38
7.3.230.0170.00316.43
7.3.210.0090.00916.38
7.3.200.0110.00716.37
7.3.190.0100.01016.54
7.3.180.0060.01016.30
7.3.170.0130.00716.31
7.3.160.0110.00616.44
7.3.120.0070.01014.80
7.3.110.0060.00914.75
7.3.100.0120.00315.02
7.3.90.0130.00614.45
7.3.80.0090.00614.91
7.3.70.0080.00814.80
7.3.60.0030.00614.79
7.3.50.0070.00414.72
7.3.40.0070.00714.92
7.3.30.0000.01214.79
7.3.20.0060.01016.61
7.3.10.0000.01316.80
7.3.00.0060.00616.61
7.2.330.0080.00816.32
7.2.320.0140.00316.33
7.2.310.0090.00916.22
7.2.300.0030.01316.26
7.2.290.0120.00916.46
7.2.250.0120.00415.02
7.2.240.0030.01514.84
7.2.230.0040.01515.09
7.2.220.0120.00614.85
7.2.210.0060.00915.02
7.2.200.0110.00415.07
7.2.190.0060.00914.77
7.2.180.0070.00714.75
7.2.170.0070.01014.90
7.2.60.0070.01016.65
7.2.00.0060.00919.28
7.1.330.0060.00915.38
7.1.320.0100.00715.89
7.1.310.0060.01215.38
7.1.300.0070.01015.45
7.1.290.0120.00315.49
7.1.280.0000.00915.72
7.1.270.0000.01515.63
7.1.260.0080.00415.69
7.1.200.0040.01215.31
7.1.100.0000.01218.13
7.1.70.0080.00316.68
7.1.60.0110.01419.12
7.1.50.0120.00616.95
7.1.00.0070.07322.50
7.0.200.0040.00416.17
7.0.60.0100.03319.92
7.0.50.0100.07717.86
7.0.40.0100.07720.18
7.0.30.0330.07020.24
7.0.20.0230.06720.12
7.0.10.0130.08320.08
7.0.00.0030.07720.09
5.6.280.0030.03320.90
5.6.210.0100.08020.77
5.6.200.0170.07318.19
5.6.190.0200.07720.55
5.6.180.0430.08020.61
5.6.170.0470.07320.56
5.6.160.0170.07020.71
5.6.150.0070.08318.27
5.6.140.0070.04018.28
5.6.130.0000.06318.26
5.6.120.0130.07721.04
5.6.110.0100.08020.98
5.6.100.0070.03720.98
5.6.90.0130.07721.10
5.6.80.0070.07320.50
5.5.350.4070.05020.39
5.5.340.0130.08018.05
5.5.330.0130.07720.27
5.5.320.0000.08720.35
5.5.310.0200.07320.35
5.5.300.0130.07717.98
5.5.290.0100.07717.98
5.5.280.0070.03720.74
5.5.270.0030.08320.81
5.5.260.0200.07720.68
5.5.250.0000.08020.59
5.5.240.0300.07720.35

preferences:
50.79 ms | 401 KiB | 5 Q