3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $name = ""; public $surname = ""; public function __construct() { $this->name = "Name"; $this->surname = "Surname"; } } class Bar { public function __construct(Foo $foo) { dd(compact('foo')); } } $f = new Foo(); $b = new Bar($f);

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.40.0120.00418.70
8.3.30.0170.00319.04
8.3.20.0040.00420.21
8.3.10.0160.00320.50
8.3.00.0050.00317.71
8.2.170.0100.01022.96
8.2.160.0100.00720.57
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00022.29
8.2.110.0040.00420.47
8.2.100.0090.00317.98
8.2.90.0000.00818.92
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.91
8.2.50.0040.00418.07
8.2.40.0070.00018.16
8.2.30.0030.00617.98
8.2.20.0040.00417.56
8.2.10.0040.00418.06
8.2.00.0000.00717.68
8.1.270.0060.00922.00
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0050.00523.79
8.1.230.0080.00418.97
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.58
8.1.160.0040.00421.84
8.1.150.0000.00718.83
8.1.140.0040.00417.33
8.1.130.0000.00717.95
8.1.120.0040.00417.38
8.1.110.0020.00517.45
8.1.100.0040.00417.29
8.1.90.0000.00717.32
8.1.80.0040.00417.29
8.1.70.0030.00317.34
8.1.60.0080.00017.47
8.1.50.0000.00717.59
8.1.40.0040.00417.47
8.1.30.0040.00417.67
8.1.20.0000.00817.57
8.1.10.0000.00717.48
8.1.00.0050.00217.56
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.38
8.0.270.0030.00317.16
8.0.260.0000.00617.18
8.0.250.0030.00317.03
8.0.240.0070.00017.00
8.0.230.0030.00316.86
8.0.220.0000.00716.83
8.0.210.0030.00316.89
8.0.200.0000.00616.91
8.0.190.0000.00816.99
8.0.180.0000.00816.81
8.0.170.0040.00416.91
8.0.160.0030.00317.00
8.0.150.0030.00316.86
8.0.140.0090.00016.71
8.0.130.0060.00013.29
8.0.120.0000.00816.86
8.0.110.0000.00716.83
8.0.100.0040.00416.76
8.0.90.0070.00016.92
8.0.80.0040.01116.82
8.0.70.0000.00716.98
8.0.60.0050.00316.90
8.0.50.0070.00016.86
8.0.30.0110.00817.32
8.0.20.0140.00817.40
8.0.10.0050.00316.97
8.0.00.0120.00516.72
7.4.330.0050.00015.05
7.4.320.0000.00616.54
7.4.300.0000.00616.53
7.4.290.0060.00016.58
7.4.280.0070.00016.58
7.4.270.0030.00316.58
7.4.260.0030.00316.49
7.4.250.0020.00516.47
7.4.240.0020.00516.50
7.4.230.0070.00016.63
7.4.220.0030.01616.67
7.4.210.0000.02016.38
7.4.200.0030.00316.31
7.4.160.0090.00916.48
7.4.150.0150.00417.40
7.4.140.0100.00917.86
7.4.130.0070.01016.40
7.4.120.0080.00916.57
7.4.110.0060.01116.46
7.4.100.0110.00816.63
7.4.90.0190.00016.60
7.4.80.0150.00319.39
7.4.70.0110.01216.66
7.4.60.0080.00816.43
7.4.50.0000.00416.27
7.4.40.0000.01716.50
7.4.30.0100.01016.41
7.4.00.0070.01115.00
7.3.330.0050.00013.23
7.3.320.0030.00313.18
7.3.310.0070.00016.42
7.3.300.0030.00316.23
7.3.290.0060.00816.35
7.3.280.0080.01016.37
7.3.270.0110.00817.40
7.3.260.0060.01016.56
7.3.250.0100.00616.32
7.3.240.0050.01016.34
7.3.230.0130.01016.51
7.3.210.0130.01016.43
7.3.200.0110.00619.39
7.3.190.0140.00816.40
7.3.180.0060.01316.29
7.3.170.0060.00916.48
7.3.160.0030.01416.32
7.2.330.0070.01716.52
7.2.320.0170.00016.66
7.2.310.0140.00316.55
7.2.300.0030.01416.63
7.2.290.0070.01516.68
7.2.60.0120.00616.91
7.1.200.0070.00715.79
7.1.100.0070.00317.65
7.1.70.0100.00317.12
7.1.60.0070.00719.32
7.1.50.0230.00416.61
7.1.00.0000.08022.45
7.0.200.0000.01016.73
7.0.140.0030.07721.97
7.0.60.0070.03719.78
7.0.50.0030.06717.86
7.0.40.0100.08020.26
7.0.30.0300.05020.08
7.0.20.0070.05020.11
7.0.10.0070.05720.17
7.0.00.0030.09020.06
5.6.280.0000.07721.02
5.6.210.0100.08720.75
5.6.200.0070.05718.28
5.6.190.0030.04320.55
5.6.180.0430.07320.75
5.6.170.0300.06720.54
5.6.160.0170.07020.52
5.6.150.0070.07718.15
5.6.140.0030.05718.24
5.6.130.0100.03718.15
5.6.120.0070.07720.79
5.6.110.0070.06020.89
5.6.100.0170.06320.98
5.6.90.0030.08320.98
5.6.80.0030.04020.44
5.5.350.0100.05720.44
5.5.340.0000.08317.94
5.5.330.0130.07720.25
5.5.320.0270.06720.31
5.5.310.0270.08020.37
5.5.300.0030.06317.95
5.5.290.0030.08318.07
5.5.280.0070.08320.88
5.5.270.0100.08020.79
5.5.260.0070.03720.87
5.5.250.0070.07020.68
5.5.240.0200.06720.27
5.4.450.0200.05319.51
5.4.440.0370.05019.32
5.4.430.0330.05019.54
5.4.420.0300.07719.31
5.4.410.0300.07019.15
5.4.400.0270.05719.32
5.4.390.0330.06319.24
5.4.380.0400.06019.16
5.4.370.0300.07018.87
5.4.360.0300.06319.13
5.4.350.0330.04019.09
5.4.340.0230.05319.32
5.4.320.0270.07718.85
5.4.310.0370.02719.09
5.4.300.0300.06019.06
5.4.290.0370.04319.09
5.4.280.0230.07019.21
5.4.270.0270.06719.03
5.4.260.0270.03319.21
5.4.250.0270.07019.09
5.4.240.0270.05018.84
5.4.230.0200.05019.05
5.4.220.0230.08319.10
5.4.210.0400.06019.08
5.4.200.0270.07319.15
5.4.190.0270.06318.97
5.4.180.0230.04719.05
5.4.170.0270.05719.05
5.4.160.0270.03718.97
5.4.150.0230.04019.05
5.4.140.0300.06016.38
5.4.130.0430.05716.38
5.4.120.0270.04716.36
5.4.110.0270.05316.46
5.4.100.0300.03716.23
5.4.90.0200.06016.61
5.4.80.0330.03316.40
5.4.70.0200.07716.49
5.4.60.0330.06316.52
5.4.50.0330.03316.39
5.4.40.0300.06016.54
5.4.30.0270.04016.47
5.4.20.0270.05316.51
5.4.10.0300.04016.34
5.4.00.0230.04315.96
5.3.290.0330.07014.89
5.3.280.0400.04014.68
5.3.270.0300.06314.52
5.3.260.0300.07014.66
5.3.250.0170.04714.61
5.3.240.0230.04014.72
5.3.230.0200.06314.52
5.3.220.0230.06014.69
5.3.210.0330.05714.54
5.3.200.0270.04014.54
5.3.190.0230.04314.68
5.3.180.0200.03714.47
5.3.170.0230.04314.55
5.3.160.0200.07714.79
5.3.150.0330.06314.49
5.3.140.0330.06314.53
5.3.130.0330.06714.46
5.3.120.0270.04014.52
5.3.110.0270.04314.70
5.3.100.0300.04714.04
5.3.90.0370.04314.09
5.3.80.0230.04713.95
5.3.70.0230.04313.94
5.3.60.0300.05014.12
5.3.50.0270.04014.01
5.3.40.0230.05713.86
5.3.30.0330.05314.00
5.3.20.0200.04713.78
5.3.10.0300.06713.88
5.3.00.0200.05013.57
5.2.170.0230.05712.27
5.2.160.0170.04312.27
5.2.150.0230.06312.27
5.2.140.0300.03012.27
5.2.130.0200.03712.27
5.2.120.0200.04712.27
5.2.110.0200.04312.27
5.2.100.0230.03312.27
5.2.90.0230.03312.27
5.2.80.0200.06312.27
5.2.70.0230.05312.27
5.2.60.0200.06312.27
5.2.50.0200.04012.27
5.2.40.0200.04312.27
5.2.30.0170.05312.27
5.2.20.0200.05012.27
5.2.10.0270.05312.27
5.2.00.0200.04312.27
5.1.60.0170.04312.27
5.1.50.0230.03012.27
5.1.40.0200.03712.27
5.1.30.0200.04012.27
5.1.20.0170.04312.27
5.1.10.0130.04712.27
5.1.00.0200.04312.27
5.0.50.0130.03712.27
5.0.40.0100.04012.27
5.0.30.0130.03712.27
5.0.20.0100.04712.27
5.0.10.0070.04312.27
5.0.00.0100.05712.27
4.4.90.0100.01712.27
4.4.80.0130.03012.27
4.4.70.0100.02312.27
4.4.60.0100.02012.27
4.4.50.0070.02712.27
4.4.40.0070.05712.27
4.4.30.0170.02012.27
4.4.20.0100.03012.27
4.4.10.0100.02312.27
4.4.00.0100.03312.27
4.3.110.0100.02312.27
4.3.100.0100.02712.27
4.3.90.0070.02312.27
4.3.80.0130.04312.27
4.3.70.0070.02312.27
4.3.60.0130.03012.27
4.3.50.0100.03012.27
4.3.40.0130.03712.27
4.3.30.0030.03712.27
4.3.20.0100.03012.27
4.3.10.0030.03012.27
4.3.00.0070.03312.27

preferences:
35.81 ms | 400 KiB | 5 Q