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 \Foo\Bar; var_dump($a); } } $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.88
8.3.50.0160.00521.86
8.3.40.0150.00318.77
8.3.30.0040.01218.71
8.3.20.0040.00420.16
8.3.10.0000.00823.60
8.3.00.0050.00319.38
8.2.180.0080.00816.75
8.2.170.0100.00322.96
8.2.160.0110.00420.22
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00717.63
8.2.120.0030.00526.35
8.2.110.0030.00722.09
8.2.100.0060.00617.63
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0070.00317.46
8.2.60.0030.00617.90
8.2.50.0000.00818.07
8.2.40.0080.00019.26
8.2.30.0040.00420.58
8.2.20.0030.00617.59
8.2.10.0040.00417.91
8.2.00.0040.00418.10
8.1.280.0070.00725.92
8.1.270.0040.00423.91
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0060.00323.97
8.1.230.0100.00317.42
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0090.00018.67
8.1.160.0000.00821.98
8.1.150.0080.00018.69
8.1.140.0030.00519.55
8.1.130.0080.00017.57
8.1.120.0000.00717.36
8.1.110.0000.00817.29
8.1.100.0070.00017.41
8.1.90.0000.00717.34
8.1.80.0030.00617.43
8.1.70.0030.00517.34
8.1.60.0040.00417.47
8.1.50.0030.00617.53
8.1.40.0030.00517.46
8.1.30.0060.00317.67
8.1.20.0040.00417.54
8.1.10.0050.00317.56
8.1.00.0030.00717.49
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.29
8.0.270.0060.00017.19
8.0.260.0030.00517.18
8.0.250.0060.00016.93
8.0.240.0000.00616.89
8.0.230.0000.00716.84
8.0.220.0030.00316.89
8.0.210.0000.00716.92
8.0.200.0040.00416.83
8.0.190.0060.00316.97
8.0.180.0070.00016.94
8.0.170.0080.00016.83
8.0.160.0030.00416.95
8.0.150.0000.00816.88
8.0.140.0000.00716.69
8.0.130.0000.00713.39
8.0.120.0050.00316.73
8.0.110.0070.00016.87
8.0.100.0000.00816.91
8.0.90.0000.00716.88
8.0.80.0080.00816.86
8.0.70.0000.00816.83
8.0.60.0070.00016.95
8.0.50.0040.00416.92
8.0.30.0120.00517.14
8.0.20.0080.01117.40
8.0.10.0070.00016.91
8.0.00.0060.01116.75
7.4.330.0020.00216.74
7.4.320.0030.00316.32
7.4.300.0030.00316.60
7.4.290.0030.00416.63
7.4.280.0080.00016.59
7.4.270.0000.00616.49
7.4.260.0070.00016.48
7.4.250.0040.00416.57
7.4.240.0030.00416.50
7.4.230.0000.00616.61
7.4.220.0070.01416.62
7.4.210.0130.00716.58
7.4.200.0030.00616.60
7.4.160.0000.01716.62
7.4.150.0140.00317.40
7.4.140.0050.01717.86
7.4.130.0110.01216.50
7.4.120.0060.01116.44
7.4.110.0100.00716.48
7.4.100.0120.00416.50
7.4.90.0120.00416.47
7.4.80.0120.00619.39
7.4.70.0130.00316.46
7.4.60.0060.01016.46
7.4.50.0000.01416.32
7.4.40.0040.01216.49
7.4.30.0170.00316.53
7.4.00.0080.01114.97
7.3.330.0000.00613.19
7.3.320.0060.00013.17
7.3.310.0020.00516.46
7.3.300.0030.00516.39
7.3.290.0000.00716.27
7.3.280.0070.01016.30
7.3.270.0100.00717.40
7.3.260.0110.00516.25
7.3.250.0120.00616.34
7.3.240.0060.01216.28
7.3.230.0110.01116.42
7.3.210.0070.01116.28
7.3.200.0110.00616.31
7.3.190.0070.01116.46
7.3.180.0110.00516.56
7.3.170.0070.01016.65
7.3.160.0000.01716.48
7.3.120.0130.00614.72
7.3.110.0030.01514.79
7.3.100.0030.00914.44
7.3.90.0070.00714.80
7.3.80.0080.00514.71
7.3.70.0070.00714.96
7.3.60.0160.00014.81
7.3.50.0000.01114.89
7.3.40.0000.00914.62
7.3.30.0110.00414.91
7.3.20.0040.01116.72
7.3.10.0090.00316.58
7.3.00.0070.00716.30
7.2.330.0060.01016.57
7.2.320.0090.00916.60
7.2.310.0100.01016.35
7.2.300.0070.01016.46
7.2.290.0160.00916.43
7.2.250.0130.00714.82
7.2.240.0040.01214.59
7.2.230.0070.01014.96
7.2.220.0000.01414.70
7.2.210.0060.01015.07
7.2.200.0130.00014.96
7.2.190.0070.00414.97
7.2.180.0080.00614.52
7.2.170.0000.01114.89
7.2.60.0030.01016.68
7.2.00.0040.00919.45
7.1.330.0160.00015.57
7.1.320.0040.00415.36
7.1.310.0030.00615.57
7.1.300.0030.00915.43
7.1.290.0030.01015.68
7.1.280.0000.01115.57
7.1.270.0060.00615.74
7.1.260.0030.01015.64
7.1.200.0130.00315.80
7.1.100.0060.00318.20
7.1.70.0000.01116.95
7.1.60.0120.01219.12
7.1.50.0110.00416.76
7.1.00.0070.07322.40
7.0.200.0040.00416.51
7.0.60.0100.05319.80
7.0.50.0070.08017.86
7.0.40.0070.04020.09
7.0.30.0230.04320.21
7.0.20.0170.05020.20
7.0.10.0130.06020.06
7.0.00.0070.04320.09
5.6.280.0100.02721.11
5.6.210.0130.06320.73
5.6.200.0130.07718.25
5.6.190.0030.07020.65
5.6.180.0230.08020.57
5.6.170.0230.03320.51
5.6.160.0100.06720.44
5.6.150.0030.05018.21
5.6.140.0130.07018.18
5.6.130.0030.05718.23
5.6.120.0100.08021.04
5.6.110.0130.08320.98
5.6.100.0100.07720.98
5.6.90.0130.04020.97
5.6.80.0100.08020.54
5.5.350.4230.04320.43
5.5.340.0030.05017.95
5.5.330.0000.06720.36
5.5.320.0030.08320.36
5.5.310.0170.04320.30
5.5.300.0070.04017.95
5.5.290.0000.09017.99
5.5.280.0100.04720.88
5.5.270.0030.05720.80
5.5.260.0030.04020.83
5.5.250.0070.04720.69
5.5.240.0400.07020.08

preferences:
42.88 ms | 401 KiB | 5 Q