3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class A { } class B { public function __construct($type) { $fullType = 'Foo\\Bar\\' . $type; new $fullType; new $type; } } new A; new B('A');

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.0120.00616.74
8.3.50.0080.01022.09
8.3.40.0120.00318.65
8.3.30.0110.00718.74
8.3.20.0000.00720.33
8.3.10.0040.00423.48
8.3.00.0040.00419.05
8.2.180.0120.00916.50
8.2.170.0140.00022.96
8.2.160.0130.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0030.00519.36
8.2.110.0060.00322.20
8.2.100.0090.00320.47
8.2.90.0000.00819.21
8.2.80.0050.00317.97
8.2.70.0050.00317.75
8.2.60.0040.00417.92
8.2.50.0070.00318.07
8.2.40.0040.00718.16
8.2.30.0000.00918.23
8.2.20.0040.00417.64
8.2.10.0040.00418.09
8.2.00.0000.00817.75
8.1.280.0070.01025.92
8.1.270.0080.00023.81
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00623.89
8.1.230.0060.00619.09
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0040.00418.58
8.1.160.0040.00421.87
8.1.150.0000.00818.56
8.1.140.0000.00717.34
8.1.130.0000.00817.83
8.1.120.0050.00217.32
8.1.110.0050.00317.29
8.1.100.0000.00717.44
8.1.90.0000.00717.28
8.1.80.0000.00717.45
8.1.70.0030.00317.39
8.1.60.0000.00817.50
8.1.50.0000.00817.52
8.1.40.0030.00617.59
8.1.30.0060.00317.68
8.1.20.0000.00717.68
8.1.10.0000.00817.49
8.1.00.0030.00517.40
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00618.40
8.0.270.0000.00717.26
8.0.260.0060.00017.32
8.0.250.0030.00517.08
8.0.240.0000.00717.00
8.0.230.0050.00216.90
8.0.220.0030.00316.98
8.0.210.0030.00316.95
8.0.200.0000.00716.94
8.0.190.0000.00716.97
8.0.180.0040.00416.95
8.0.170.0000.00916.97
8.0.160.0000.00716.87
8.0.150.0000.00716.86
8.0.140.0030.00316.85
8.0.130.0000.00613.38
8.0.120.0040.00416.77
8.0.110.0040.00416.96
8.0.100.0070.00017.01
8.0.90.0000.00716.88
8.0.80.0080.00816.91
8.0.70.0070.00016.75
8.0.60.0040.00416.84
8.0.50.0040.00416.72
8.0.30.0140.00717.29
8.0.20.0130.00517.40
8.0.10.0000.00716.95
8.0.00.0060.01116.89
7.4.330.0050.00015.00
7.4.320.0030.00316.45
7.4.300.0060.00016.65
7.4.290.0070.00016.62
7.4.280.0040.00416.61
7.4.270.0000.00816.50
7.4.260.0000.00716.49
7.4.250.0000.00816.42
7.4.240.0000.00716.59
7.4.230.0000.00716.59
7.4.220.0130.00316.54
7.4.210.0040.01116.67
7.4.200.0000.00716.35
7.4.160.0050.01016.52
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0150.00516.63
7.4.120.0090.00816.64
7.4.110.0000.01716.68
7.4.100.0030.02116.61
7.4.90.0130.01016.62
7.4.80.0070.01019.39
7.4.70.0040.01316.58
7.4.60.0100.00616.54
7.4.50.0030.00616.45
7.4.40.0070.01416.36
7.4.30.0130.00316.74
7.4.00.0150.00214.81
7.3.330.0020.00213.34
7.3.320.0030.00313.22
7.3.310.0030.00316.55
7.3.300.0030.00316.34
7.3.290.0060.00916.40
7.3.280.0080.00816.42
7.3.270.0070.01017.40
7.3.260.0090.01516.58
7.3.250.0090.00916.50
7.3.240.0060.01016.63
7.3.230.0130.00316.62
7.3.210.0030.01616.43
7.3.200.0110.00519.39
7.3.190.0100.01216.40
7.3.180.0000.01616.40
7.3.170.0060.00916.61
7.3.160.0120.01216.48
7.3.120.0100.00614.85
7.3.110.0060.00814.62
7.3.100.0050.01114.75
7.3.90.0040.00714.89
7.3.80.0070.00514.96
7.3.70.0040.00714.86
7.3.60.0050.00714.80
7.3.50.0050.00614.93
7.3.40.0070.00414.75
7.3.30.0080.00714.81
7.3.20.0030.01216.69
7.3.10.0090.00616.60
7.3.00.0050.01016.70
7.2.330.0110.00716.57
7.2.320.0100.00616.51
7.2.310.0170.00316.78
7.2.300.0030.01316.54
7.2.290.0090.01316.55
7.2.250.0130.00715.06
7.2.240.0070.00914.68
7.2.230.0050.01015.08
7.2.220.0070.00915.04
7.2.210.0000.01314.94
7.2.200.0080.00214.98
7.2.190.0030.01214.91
7.2.180.0080.00714.94
7.2.170.0040.01014.73
7.2.160.0030.01314.66
7.2.150.0040.01416.49
7.2.140.0070.00716.78
7.2.130.0040.01416.75
7.2.120.0100.00616.61
7.2.110.0070.00316.86
7.2.100.0100.00616.52
7.2.90.0030.01216.92
7.2.80.0040.01116.59
7.2.70.0120.00616.67
7.2.60.0210.01116.71
7.2.50.0140.00016.68
7.2.40.0070.01016.52
7.2.30.0100.00716.89
7.2.20.0090.00616.87
7.2.10.0040.01216.81
7.2.00.0090.00616.73
7.1.330.0060.01015.52
7.1.320.0050.00815.65
7.1.310.0050.00915.69
7.1.300.0050.00615.78
7.1.290.0030.01015.63
7.1.280.0070.00715.43
7.1.270.0040.01115.67
7.1.260.0080.00615.69
7.1.250.0040.01215.52
7.1.200.0030.00915.65
7.1.100.0030.00817.89
7.1.70.0030.00516.95
7.1.60.0060.01519.70
7.1.50.0140.01016.74
7.1.00.0100.07022.31
7.0.200.0030.00516.71
7.0.140.0000.07321.92
7.0.100.0170.03720.03
7.0.90.0170.04319.89
7.0.80.0070.03719.83
7.0.70.0030.04019.91
7.0.60.0070.04019.96
7.0.50.0070.04720.30
7.0.40.0070.08720.18
7.0.30.0070.07720.10
7.0.20.0000.08720.00
7.0.10.0070.07719.94
7.0.00.0100.08320.07
5.6.280.0100.06721.02
5.6.250.0100.07020.72
5.6.240.0030.04020.67
5.6.230.0030.05320.66
5.6.220.0000.04320.64
5.6.210.0030.04720.61
5.6.200.0030.04321.04
5.6.190.0070.05721.06
5.6.180.0030.07321.11
5.6.170.0130.07020.96
5.6.160.0100.05021.05
5.6.150.0100.07721.11
5.6.140.0170.07721.00
5.6.130.0130.07321.10
5.6.120.0000.05721.17
5.6.110.0000.07020.93
5.6.100.0100.08320.99
5.6.90.0200.08320.93
5.6.80.0070.07020.55
5.6.70.0170.06720.50
5.6.60.0030.06020.39
5.6.50.0030.08720.52
5.6.40.0070.07720.39
5.6.30.0000.05320.40
5.6.20.0100.07720.45
5.6.10.0130.07720.38
5.6.00.0070.05020.36
5.5.380.0030.04020.39
5.5.370.0070.03720.36
5.5.360.0000.04320.44
5.5.350.0030.04020.40
5.5.340.0000.04320.84
5.5.330.0200.07020.90
5.5.320.0100.07320.93
5.5.310.0170.06720.82
5.5.300.0070.08320.90
5.5.290.0130.04320.63
5.5.280.0070.08720.90
5.5.270.0130.07720.86
5.5.260.0100.06720.92
5.5.250.0130.08020.57
5.5.240.0200.05720.23
5.5.230.0100.04320.02
5.5.220.0100.07320.15
5.5.210.0230.06320.24
5.5.200.0030.08320.11
5.5.190.0130.04320.21
5.5.180.0070.04320.23
5.5.160.0070.08320.22
5.5.150.0070.08020.17
5.5.140.0130.05720.21
5.5.130.0030.08320.22
5.5.120.0130.07320.23
5.5.110.0070.08020.19
5.5.100.0100.04320.08
5.5.90.0100.07720.16
5.5.80.0070.08020.17
5.5.70.0070.07720.12
5.5.60.0100.06720.07
5.5.50.0170.06319.92
5.5.40.0100.07320.14
5.5.30.0130.07020.06
5.5.20.0130.06720.09
5.5.10.0100.05320.07
5.5.00.0030.04320.04
5.4.450.0170.05719.25
5.4.440.0130.04319.37
5.4.430.0070.03719.55
5.4.420.0170.07019.48
5.4.410.0130.06319.38
5.4.400.0200.06018.95
5.4.390.0130.07018.87
5.4.380.0100.07319.04
5.4.370.0000.08018.88
5.4.360.0070.07719.12
5.4.350.0130.07319.10
5.4.340.0130.04718.95
5.4.320.0000.08019.18
5.4.310.0100.07318.95
5.4.300.0000.04319.12
5.4.290.0000.04319.12
5.4.280.0030.05019.09
5.4.270.0070.07018.87
5.4.260.0100.07018.89
5.4.250.0070.05319.15
5.4.240.0170.05719.02
5.4.230.0170.06719.04
5.4.220.0070.04719.02
5.4.210.0070.03319.13
5.4.200.0030.06319.04
5.4.190.0030.03718.83
5.4.180.0070.04019.22
5.4.170.0170.06718.88
5.4.160.0030.08019.02
5.4.150.0070.04719.18
5.4.140.0070.03316.47
5.4.130.0070.06716.46
5.4.120.0030.07716.54
5.4.110.0100.07016.45
5.4.100.0130.04716.39
5.4.90.0030.06016.55
5.4.80.0070.06716.47
5.4.70.0070.04016.38
5.4.60.0070.07316.24
5.4.50.0100.04016.25
5.4.40.0030.07716.29
5.4.30.0030.07316.43
5.4.20.0070.06716.49
5.4.10.0070.07316.43
5.4.00.0130.06315.63
5.3.290.0070.04314.73
5.3.280.0030.07714.70
5.3.270.0030.07714.74
5.3.260.0070.06714.63
5.3.250.0070.05314.61
5.3.240.0030.07314.66
5.3.230.0200.05714.60
5.3.220.0100.07314.49
5.3.210.0100.04014.49
5.3.200.0130.07014.57
5.3.190.0100.05014.63
5.3.180.0070.07314.65
5.3.170.0100.07314.49
5.3.160.0230.06714.55
5.3.150.0070.07714.56
5.3.140.0130.06314.54
5.3.130.0130.07014.61
5.3.120.0070.04314.48
5.3.110.0070.07714.68
5.3.100.0130.06314.10
5.3.90.0030.07714.08
5.3.80.0070.07313.90
5.3.70.0070.06013.93
5.3.60.0130.06714.09
5.3.50.0030.07713.94
5.3.40.0100.06014.07
5.3.30.0030.05313.97
5.3.20.0100.04713.68
5.3.10.0070.06713.71
5.3.00.0070.07313.68
5.2.170.0070.06313.68
5.2.160.0070.06313.68
5.2.150.0100.05713.68
5.2.140.0070.06713.68
5.2.130.0130.05713.68
5.2.120.0030.03713.68
5.2.110.0000.05713.68
5.2.100.0070.03013.68
5.2.90.0000.06313.68
5.2.80.0100.05013.68
5.2.70.0000.03313.68
5.2.60.0030.06313.68
5.2.50.0130.06013.68
5.2.40.0030.06013.68
5.2.30.0030.05713.68
5.2.20.0100.06013.68
5.2.10.0100.05313.68
5.2.00.0030.06313.68
5.1.60.0070.04713.68
5.1.50.0070.05013.68
5.1.40.0030.05013.68
5.1.30.0030.06013.68
5.1.20.0000.05713.68
5.1.10.0070.05013.68
5.1.00.0000.05713.68
5.0.50.0030.03713.68
5.0.40.0030.04313.68
5.0.30.0000.04713.68
5.0.20.0070.04013.68
5.0.10.0030.03013.68
5.0.00.0030.06313.68
4.4.90.0000.03313.68
4.4.80.0000.03713.68
4.4.70.0070.01313.68
4.4.60.0070.03313.68
4.4.50.0070.03013.68
4.4.40.0130.04313.68
4.4.30.0030.03713.68
4.4.20.0030.03313.68
4.4.10.0070.02713.68
4.4.00.0070.03013.68
4.3.110.0000.03713.68
4.3.100.0030.03313.68
4.3.90.0030.03313.68
4.3.80.0000.04313.68
4.3.70.0070.02713.68
4.3.60.0030.02713.68
4.3.50.0030.03713.68
4.3.40.0000.05313.68
4.3.30.0000.03313.68
4.3.20.0000.03713.68
4.3.10.0000.03013.68
4.3.00.0000.02013.68

preferences:
54.76 ms | 401 KiB | 5 Q