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) { $obj = (array)$foo; var_dump($obj); } } $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.60.0120.00618.43
8.3.50.0130.00822.18
8.3.40.0070.00718.78
8.3.30.0080.01119.04
8.3.20.0050.00220.39
8.3.10.0050.00320.54
8.3.00.0050.00317.50
8.2.180.0120.00618.54
8.2.170.0120.00622.96
8.2.160.0130.00320.50
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00022.27
8.2.110.0090.00020.26
8.2.100.0000.01217.91
8.2.90.0040.00419.25
8.2.80.0040.00417.97
8.2.70.0100.00017.38
8.2.60.0000.00817.80
8.2.50.0000.00918.07
8.2.40.0070.00018.03
8.2.30.0000.00818.06
8.2.20.0060.00317.69
8.2.10.0070.00017.98
8.2.00.0000.00717.61
8.1.280.0140.00725.92
8.1.270.0030.00623.87
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.96
8.1.230.0040.00718.82
8.1.220.0000.00717.74
8.1.210.0100.00018.77
8.1.200.0000.00917.23
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0050.00318.51
8.1.160.0070.00022.01
8.1.150.0000.00718.74
8.1.140.0000.00817.27
8.1.130.0070.00017.82
8.1.120.0000.00717.43
8.1.110.0040.00417.36
8.1.100.0050.00317.34
8.1.90.0040.00417.36
8.1.80.0050.00317.28
8.1.70.0000.00717.31
8.1.60.0000.00917.58
8.1.50.0040.00417.54
8.1.40.0000.00717.43
8.1.30.0040.00417.63
8.1.20.0000.00717.61
8.1.10.0040.00417.54
8.1.00.0060.00317.42
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0030.00318.38
8.0.270.0030.00317.26
8.0.260.0060.00017.12
8.0.250.0000.00716.95
8.0.240.0030.00316.79
8.0.230.0030.00316.94
8.0.220.0000.00716.91
8.0.210.0000.00716.90
8.0.200.0000.00616.95
8.0.190.0030.00616.93
8.0.180.0040.00416.94
8.0.170.0050.00316.95
8.0.160.0030.00516.89
8.0.150.0000.00716.73
8.0.140.0000.00716.89
8.0.130.0030.00313.32
8.0.120.0030.00516.85
8.0.110.0000.00716.79
8.0.100.0040.00416.75
8.0.90.0040.00417.00
8.0.80.0060.00916.90
8.0.70.0050.00216.78
8.0.60.0040.00416.75
8.0.50.0000.00716.77
8.0.30.0070.01217.03
8.0.20.0140.00917.40
8.0.10.0030.00516.89
8.0.00.0040.01316.54
7.4.330.0000.00515.15
7.4.320.0030.00316.41
7.4.300.0060.00016.59
7.4.290.0000.00716.52
7.4.280.0030.00316.60
7.4.270.0000.00716.52
7.4.260.0030.00316.60
7.4.250.0030.00316.51
7.4.240.0030.00316.49
7.4.230.0070.00016.30
7.4.220.0100.01316.54
7.4.210.0070.00516.52
7.4.200.0000.00716.61
7.4.160.0190.00016.25
7.4.150.0100.00717.40
7.4.140.0120.00717.86
7.4.130.0100.00916.46
7.4.120.0140.00616.51
7.4.110.0060.01216.58
7.4.100.0100.00716.30
7.4.90.0120.00916.59
7.4.80.0090.00919.39
7.4.70.0070.01116.41
7.4.60.0100.00616.26
7.4.50.0000.00816.50
7.4.40.0070.01016.51
7.4.30.0090.01316.47
7.4.00.0030.01414.70
7.3.330.0050.00313.21
7.3.320.0030.00313.31
7.3.310.0050.00216.34
7.3.300.0000.00616.41
7.3.290.0110.00316.31
7.3.280.0120.00716.25
7.3.270.0090.01217.40
7.3.260.0090.01216.48
7.3.250.0100.00816.39
7.3.240.0130.00416.34
7.3.230.0030.01316.41
7.3.210.0130.00416.29
7.3.200.0030.01319.39
7.3.190.0090.01216.37
7.3.180.0060.00916.29
7.3.170.0090.00616.30
7.3.160.0080.00816.21
7.2.330.0070.01016.56
7.2.320.0060.01116.66
7.2.310.0130.00316.81
7.2.300.0140.00616.80
7.2.290.0060.01016.48
7.2.60.0280.00416.74
7.2.00.0030.00619.27
7.1.200.0040.00715.64
7.1.100.0040.01217.81
7.1.70.0060.00316.82
7.1.60.0100.01319.32
7.1.50.0110.01117.00
7.1.00.0000.08022.50
7.0.200.0090.00016.72
7.0.140.0000.08022.09
7.0.60.0130.03019.84
7.0.50.0130.03317.89
7.0.40.0070.05020.40
7.0.30.0470.06320.21
7.0.20.0270.07020.23
7.0.10.0270.06320.24
7.0.00.0100.07320.14
5.6.280.0100.06720.92
5.6.210.0130.03320.75
5.6.200.0030.04018.18
5.6.190.0130.07720.61
5.6.180.3370.04020.67
5.6.170.0230.06720.40
5.6.160.0000.08720.62
5.6.150.0030.04318.28
5.6.140.0100.03318.21
5.6.130.0070.08318.29
5.6.120.0030.04321.16
5.6.110.0100.06721.13
5.6.100.0100.06020.98
5.6.90.0130.07721.01
5.6.80.0230.07020.41
5.6.70.4230.03720.41
5.5.350.0270.08320.42
5.5.340.0070.04017.95
5.5.330.0030.04320.37
5.5.320.0300.06720.39
5.5.310.0330.07320.27
5.5.300.0030.04717.98
5.5.290.0070.07717.95
5.5.280.0030.04320.74
5.5.270.0070.06020.89
5.5.260.0130.07720.90
5.5.250.0100.05720.71
5.5.240.0130.05020.16
5.4.450.1100.03319.57
5.4.440.0630.06019.32
5.4.430.0730.06019.55
5.4.420.0670.00019.36
5.4.410.0600.00019.46
5.4.400.0700.00019.06
5.4.390.0630.00019.16
5.4.380.0630.00019.07
5.4.370.0630.00019.06
5.4.360.0600.00019.04
5.4.350.0630.00019.07
5.4.340.0630.00019.06
5.4.320.0070.03512.51
5.4.310.0090.03712.50
5.4.300.0030.04612.51
5.4.290.0060.03912.50
5.4.280.0070.03412.40
5.4.270.0040.03712.40
5.4.260.0050.03812.40
5.4.250.0040.04012.40
5.4.240.0050.04112.40
5.4.230.0110.03412.39
5.4.220.0060.03812.39
5.4.210.0070.03412.39
5.4.200.0070.03612.39
5.4.190.0070.03412.39
5.4.180.0080.03412.39
5.4.170.0070.03412.40
5.4.160.0050.03712.39
5.4.150.0050.03612.39
5.4.140.0060.03712.07
5.4.130.0050.03612.07
5.4.120.0050.03712.02
5.4.110.0050.03712.02
5.4.100.0070.03312.01
5.4.90.0070.03612.02
5.4.80.0040.03812.02
5.4.70.0040.03612.01
5.4.60.0070.03412.01
5.4.50.0070.03312.02
5.4.40.0060.03512.00
5.4.30.0100.04112.00
5.4.20.0080.03812.00
5.4.10.0070.03912.00
5.4.00.0070.03511.49
5.3.290.0080.04012.80
5.3.280.0070.03512.71
5.3.270.0010.04412.73
5.3.260.0110.04012.72
5.3.250.0050.04112.71
5.3.240.0050.04012.72
5.3.230.0040.04012.71
5.3.220.0050.03812.68
5.3.210.0040.04012.68
5.3.200.0050.03612.68
5.3.190.0060.03612.68
5.3.180.0080.03412.68
5.3.170.0070.04212.67
5.3.160.0060.03512.67
5.3.150.0020.04012.67
5.3.140.0080.03412.66
5.3.130.0050.04012.65
5.3.120.0090.03612.66
5.3.110.0060.03912.66
5.3.100.0090.03312.12
5.3.90.0060.03512.10
5.3.80.0040.04312.09
5.3.70.0040.03812.10
5.3.60.0090.03312.08
5.3.50.0050.03712.03
5.3.40.0080.04012.03
5.3.30.0060.03411.99
5.3.20.0050.03611.77
5.3.10.0060.03411.73
5.3.00.0090.03311.72
5.2.170.0050.0329.22
5.2.160.0060.0339.22
5.2.150.0040.0329.23
5.2.140.0070.0299.22
5.2.130.0080.0279.18
5.2.120.0050.0279.18
5.2.110.0060.0279.19
5.2.100.0020.0369.18
5.2.90.0040.0319.18
5.2.80.0030.0319.17
5.2.70.0030.0319.18
5.2.60.0050.0379.13
5.2.50.0070.0309.10
5.2.40.0080.0339.08
5.2.30.0010.0339.05
5.2.20.0060.0279.04
5.2.10.0040.0288.94
5.2.00.0040.0298.81
5.1.60.0040.0238.09
5.1.50.0030.0268.09
5.1.40.0010.0278.07
5.1.30.0020.0298.42
5.1.20.0050.0258.44
5.1.10.0080.0228.17
5.1.00.0010.0288.17
5.0.50.0060.0196.65
5.0.40.0050.0176.50
5.0.30.0050.0316.32
5.0.20.0020.0216.29
5.0.10.0050.0196.26
5.0.00.0040.0306.25
4.4.90.0020.0164.78
4.4.80.0040.0144.75
4.4.70.0020.0164.75
4.4.60.0030.0154.76
4.4.50.0020.0224.77
4.4.40.0030.0264.71
4.4.30.0070.0124.76
4.4.20.0010.0174.85
4.4.10.0040.0144.85
4.4.00.0030.0244.75
4.3.110.0020.0164.66
4.3.100.0030.0144.66
4.3.90.0070.0134.64
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0040.0134.63
4.3.50.0050.0134.63
4.3.40.0020.0244.54
4.3.30.0020.0163.30
4.3.20.0020.0163.28
4.3.10.0000.0173.24
4.3.00.0000.01716.50

preferences:
48.94 ms | 400 KiB | 5 Q