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; echo "try to create $fullType\n"; new $fullType; echo "$fullType created\n"; echo "try to create $type\n"; new $type; echo "$type created\n"; } } 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.70.0150.00016.58
8.3.60.0100.00716.63
8.3.50.0120.00821.98
8.3.40.0000.01418.96
8.3.30.0110.00419.04
8.3.20.0040.00420.34
8.3.10.0060.00323.48
8.3.00.0050.00320.97
8.2.180.0110.00718.22
8.2.170.0120.00322.96
8.2.160.0130.00320.35
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0110.00019.28
8.2.110.0060.00322.07
8.2.100.0080.00320.38
8.2.90.0030.00719.16
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0040.00817.91
8.2.30.0030.00618.34
8.2.20.0080.00017.63
8.2.10.0050.00317.99
8.2.00.0070.00017.73
8.1.280.0070.01025.92
8.1.270.0040.00423.93
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.63
8.1.230.0110.00018.97
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00817.47
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0030.00618.51
8.1.160.0000.00922.01
8.1.150.0000.00818.59
8.1.140.0040.00417.40
8.1.130.0000.00717.87
8.1.120.0000.00717.38
8.1.110.0030.00617.39
8.1.100.0030.00617.27
8.1.90.0000.00717.43
8.1.80.0000.00717.29
8.1.70.0030.00317.27
8.1.60.0030.00617.61
8.1.50.0030.00517.42
8.1.40.0000.00817.43
8.1.30.0000.00817.55
8.1.20.0040.00417.56
8.1.10.0040.00417.56
8.1.00.0040.00417.35
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0030.00318.46
8.0.270.0000.00717.27
8.0.260.0040.00417.26
8.0.250.0030.00317.02
8.0.240.0000.01016.91
8.0.230.0000.00717.02
8.0.220.0030.00316.96
8.0.210.0060.00017.03
8.0.200.0000.00717.00
8.0.190.0070.00016.89
8.0.180.0000.00816.96
8.0.170.0040.00416.85
8.0.160.0040.00416.98
8.0.150.0080.00016.98
8.0.140.0000.00816.95
8.0.130.0000.00513.35
8.0.120.0030.00516.94
8.0.110.0030.00516.87
8.0.100.0030.00617.03
8.0.90.0040.00416.79
8.0.80.0100.01016.91
8.0.70.0000.00716.96
8.0.60.0040.00416.85
8.0.50.0000.00716.84
8.0.30.0110.00817.19
8.0.20.0100.01217.40
8.0.10.0040.00416.88
8.0.00.0090.00816.66
7.4.330.0000.00515.08
7.4.320.0030.00316.38
7.4.300.0030.00316.58
7.4.290.0000.00716.53
7.4.280.0000.00716.63
7.4.270.0030.00316.62
7.4.260.0050.00316.50
7.4.250.0040.00416.43
7.4.240.0040.00416.52
7.4.230.0070.00016.72
7.4.220.0160.00716.38
7.4.210.0060.01216.63
7.4.200.0030.00316.68
7.4.160.0080.00816.52
7.4.150.0150.00317.40
7.4.140.0130.00717.86
7.4.130.0120.00516.54
7.4.120.0090.00916.47
7.4.110.0070.01016.56
7.4.100.0070.01416.58
7.4.90.0180.00416.52
7.4.80.0160.00619.39
7.4.70.0060.00916.81
7.4.60.0130.00616.66
7.4.50.0000.00616.25
7.4.40.0130.00316.62
7.4.30.0100.00516.55
7.4.00.0040.01115.13
7.3.330.0050.00013.20
7.3.320.0000.00613.37
7.3.310.0000.00716.44
7.3.300.0030.00316.44
7.3.290.0080.00816.50
7.3.280.0080.01116.39
7.3.270.0110.00617.40
7.3.260.0070.01716.61
7.3.250.0070.01016.49
7.3.240.0150.00316.59
7.3.230.0060.01216.52
7.3.210.0170.00016.40
7.3.200.0030.01719.39
7.3.190.0090.01416.53
7.3.180.0030.01316.48
7.3.170.0120.00916.60
7.3.160.0130.01016.57
7.3.120.0070.00314.91
7.2.330.0030.01916.62
7.2.320.0050.01516.63
7.2.310.0060.01116.66
7.2.300.0140.00416.73
7.2.290.0080.00816.57
7.2.60.0070.00716.81
7.2.00.0080.00819.56
7.1.200.0050.01115.73
7.1.100.0070.01018.05
7.1.70.0030.00816.87
7.1.60.0030.01719.70
7.1.50.0170.00716.85
7.1.00.0030.08022.36
7.0.200.0000.00716.86
7.0.140.0100.06721.98
7.0.100.0100.03319.96
7.0.90.0070.05019.89
7.0.80.0200.05319.94
7.0.70.0100.08019.98
7.0.60.0100.04319.93
7.0.50.0030.05020.34
7.0.40.0170.06720.05
7.0.30.0030.08720.07
7.0.20.0170.07720.10
7.0.10.0000.09320.03
7.0.00.0000.04020.08
5.6.280.0130.06721.07
5.6.250.0100.08020.57
5.6.240.0000.06320.64
5.6.230.0030.08320.50
5.6.220.0130.07720.73
5.6.210.0030.05720.56
5.6.200.0170.07721.03
5.6.190.0070.04021.05
5.6.180.0030.05721.05
5.6.170.0030.08320.98
5.6.160.0100.07020.95
5.6.150.0000.08021.04
5.6.140.0100.06020.97
5.6.130.0130.08321.06
5.6.120.0070.08021.02
5.6.110.0100.05021.01
5.6.100.0170.07321.02
5.6.90.0100.09020.92
5.6.80.0030.05020.47
5.6.70.0030.08720.40
5.6.60.0100.08020.43
5.6.50.0170.04320.39
5.6.40.0170.05320.38
5.6.30.0070.05320.36
5.6.20.0130.06020.31
5.6.10.0200.06720.41
5.6.00.0000.08020.45
5.5.380.0130.05720.53
5.5.370.0100.03020.40
5.5.360.0030.04020.35
5.5.350.0070.06720.37
5.5.340.0100.08020.92
5.5.330.0130.07320.93
5.5.320.0170.07020.87
5.5.310.0030.08320.76
5.5.300.0070.07720.79
5.5.290.0130.08020.77
5.5.280.0070.08720.82
5.5.270.0030.07320.74
5.5.260.0030.06020.77
5.5.250.0000.08720.64
5.5.240.0130.07720.28
5.5.230.0070.05020.28
5.5.220.0100.07320.30
5.5.210.0030.09720.14
5.5.200.0030.08320.11
5.5.190.0100.07020.12
5.5.180.0100.07320.25
5.5.160.0070.05320.23
5.5.150.0070.06720.27
5.5.140.0100.08020.21
5.5.130.0030.05320.27
5.5.120.0070.07720.14
5.5.110.0130.06320.26
5.5.100.0030.08319.93
5.5.90.0130.07720.07
5.5.80.0070.07320.15
5.5.70.0070.08020.04
5.5.60.0130.07320.14
5.5.50.0130.06720.07
5.5.40.0070.07019.93
5.5.30.0070.08020.05
5.5.20.0100.06320.05
5.5.10.0070.08320.05
5.5.00.0030.05020.11
5.4.450.0100.07019.27
5.4.440.0000.08319.45
5.4.430.0070.07719.41
5.4.420.0100.04319.53
5.4.410.0030.06719.34
5.4.400.0130.07319.23
5.4.390.0030.05319.21
5.4.380.0130.07019.05
5.4.370.0000.08318.90
5.4.360.0100.04718.95
5.4.350.0030.08019.04
5.4.340.0100.03719.03
5.4.320.0100.08019.18
5.4.310.0100.07718.88
5.4.300.0100.07019.20
5.4.290.0070.07319.18
5.4.280.0000.08019.12
5.4.270.0200.06319.21
5.4.260.0070.07019.12
5.4.250.0070.04318.94
5.4.240.0100.07018.91
5.4.230.0100.07719.16
5.4.220.0170.06719.08
5.4.210.0100.04019.17
5.4.200.0070.07019.04
5.4.190.0130.03019.02
5.4.180.0070.06719.20
5.4.170.0070.07319.03
5.4.160.0070.06019.02
5.4.150.0070.06719.10
5.4.140.0030.07716.45
5.4.130.0100.06016.44
5.4.120.0100.07016.38
5.4.110.0030.05016.40
5.4.100.0070.03716.39
5.4.90.0100.05716.41
5.4.80.0070.04016.39
5.4.70.0070.05316.36
5.4.60.0000.06316.44
5.4.50.0070.06316.31
5.4.40.0070.07316.47
5.4.30.0000.08716.47
5.4.20.0100.06016.48
5.4.10.0100.04016.49
5.4.00.0070.03715.64
5.3.290.0070.07315.15
5.3.280.0070.06015.15
5.3.270.0100.06015.15
5.3.260.0100.05015.15
5.3.250.0070.04715.15
5.3.240.0070.07315.15
5.3.230.0070.04015.15
5.3.220.0030.07715.15
5.3.210.0130.06715.15
5.3.200.0070.07315.15
5.3.190.0030.07315.15
5.3.180.0130.06715.15
5.3.170.0000.08315.15
5.3.160.0030.08015.15
5.3.150.0100.04315.15
5.3.140.0100.06715.15
5.3.130.0100.07315.15
5.3.120.0100.04315.15
5.3.110.0070.06715.15
5.3.100.0030.05015.15
5.3.90.0000.06015.15
5.3.80.0100.06315.15
5.3.70.0000.07015.15
5.3.60.0070.04315.15
5.3.50.0030.07015.15
5.3.40.0030.07315.15
5.3.30.0030.07715.15
5.3.20.0130.05015.15
5.3.10.0170.06015.15
5.3.00.0000.08315.15
5.2.170.0030.03715.15
5.2.160.0070.05715.15
5.2.150.0070.06315.15
5.2.140.0030.05315.15
5.2.130.0030.06715.15
5.2.120.0100.04015.15
5.2.110.0030.03315.15
5.2.100.0000.07015.15
5.2.90.0000.06315.15
5.2.80.0100.03015.15
5.2.70.0130.05315.15
5.2.60.0030.03715.15
5.2.50.0070.04715.15
5.2.40.0100.05015.15
5.2.30.0030.06715.15
5.2.20.0070.03015.15
5.2.10.0030.05715.15
5.2.00.0100.04715.15
5.1.60.0000.04715.15
5.1.50.0100.04315.15
5.1.40.0070.04015.15
5.1.30.0030.06015.15
5.1.20.0070.05315.15
5.1.10.0070.02315.15
5.1.00.0000.03315.15
5.0.50.0030.02315.15
5.0.40.0000.04315.15
5.0.30.0070.03715.15
5.0.20.0000.04015.15
5.0.10.0030.04015.15
5.0.00.0000.05015.15
4.4.90.0030.03015.15
4.4.80.0070.03015.15
4.4.70.0030.02715.15
4.4.60.0000.01715.15
4.4.50.0000.03715.15
4.4.40.0030.05015.15
4.4.30.0000.03715.15
4.4.20.0030.02315.15
4.4.10.0000.03715.15
4.4.00.0030.02715.15
4.3.110.0030.02315.15
4.3.100.0030.03715.15
4.3.90.0070.02715.15
4.3.80.0000.03015.15
4.3.70.0000.04015.15
4.3.60.0030.02015.15
4.3.50.0030.03015.15
4.3.40.0000.03715.15
4.3.30.0130.02315.15
4.3.20.0000.03715.15
4.3.10.0070.02715.15
4.3.00.0000.02315.15

preferences:
62.67 ms | 401 KiB | 5 Q