3v4l.org

run code in 300+ PHP versions simultaneously
<?php class me { public $arm; public $leg; public function __construct() { $this->arm = 'beautiful'; $this->leg = 'pretty'; } public function setLeg($l) { $this->leg = $l; } public function getLeg() { return $this->leg; } } class myBio extends me { public $bio; public function __construc() { $this->bio = $this->getLeg(); } public function newLeg() { var_dump($this->bio); } public function tryLeg() { $this->leg = $this->getLeg(); print $this->leg; } } $mB = new myBio(); $mB->newLeg(); $mB->tryLeg();

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.0130.00316.63
8.3.50.0150.00522.01
8.3.40.0170.00018.88
8.3.30.0120.00619.22
8.3.20.0040.00420.24
8.3.10.0000.00821.87
8.3.00.0100.00017.36
8.2.180.0080.00816.50
8.2.170.0100.00722.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.12
8.2.110.0030.00721.96
8.2.100.0090.00319.89
8.2.90.0050.00319.04
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0080.00017.91
8.2.50.0030.00518.07
8.2.40.0060.00320.06
8.2.30.0090.00018.00
8.2.20.0040.00417.80
8.2.10.0040.00417.89
8.2.00.0040.00417.45
8.1.280.0120.00625.92
8.1.270.0040.00421.87
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.91
8.1.230.0110.00019.07
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0070.00317.23
8.1.190.0000.00817.38
8.1.180.0030.00618.10
8.1.170.0040.00418.46
8.1.160.0040.00421.96
8.1.150.0080.00018.55
8.1.140.0040.00417.41
8.1.130.0000.00717.89
8.1.120.0040.00417.38
8.1.110.0000.00817.40
8.1.100.0000.00817.40
8.1.90.0000.00717.32
8.1.80.0000.00717.30
8.1.70.0030.00317.36
8.1.60.0040.00417.59
8.1.50.0000.00817.47
8.1.40.0040.00417.55
8.1.30.0050.00317.42
8.1.20.0040.00417.54
8.1.10.0000.00817.55
8.1.00.0030.00617.60
8.0.300.0040.00418.77
8.0.290.0050.00317.15
8.0.280.0000.00718.55
8.0.270.0030.00317.26
8.0.260.0030.00317.27
8.0.250.0000.00716.96
8.0.240.0000.00816.96
8.0.230.0030.00316.90
8.0.220.0070.00016.84
8.0.210.0000.00716.73
8.0.200.0030.00316.89
8.0.190.0000.00716.91
8.0.180.0040.00416.82
8.0.170.0000.00816.85
8.0.160.0070.00016.71
8.0.150.0080.00016.70
8.0.140.0090.00416.77
8.0.130.0060.00013.25
8.0.120.0040.00416.80
8.0.110.0000.00716.83
8.0.100.0000.00716.69
8.0.90.0040.00416.63
8.0.80.0130.00616.89
8.0.70.0000.00816.75
8.0.60.0070.00016.68
8.0.50.0000.00816.75
8.0.30.0100.01316.82
8.0.20.0110.00817.45
8.0.10.0020.00516.93
8.0.00.0100.00716.77
7.4.330.0050.00015.04
7.4.320.0030.00316.46
7.4.300.0000.00616.54
7.4.290.0040.00416.63
7.4.280.0000.00716.65
7.4.270.0030.00316.53
7.4.260.0030.00316.49
7.4.250.0030.00516.56
7.4.240.0030.00316.57
7.4.230.0030.00316.43
7.4.220.0100.00616.51
7.4.210.0090.00516.61
7.4.200.0000.00816.43
7.4.190.0070.00016.66
7.4.160.0060.00916.58
7.4.150.0200.00317.40
7.4.140.0130.00817.86
7.4.130.0110.01116.51
7.4.120.0040.01216.48
7.4.110.0120.00616.74
7.4.100.0090.00916.56
7.4.90.0110.01116.43
7.4.80.0090.01219.39
7.4.70.0070.01416.49
7.4.60.0090.00616.56
7.4.50.0050.00016.37
7.4.40.0070.01016.58
7.4.30.0060.01016.43
7.4.00.0100.00614.92
7.3.330.0000.00513.36
7.3.320.0050.00013.21
7.3.310.0000.00716.32
7.3.300.0030.00316.16
7.3.290.0100.00516.21
7.3.280.0080.00916.34
7.3.270.0100.00717.40
7.3.260.0080.00916.53
7.3.250.0130.01016.37
7.3.240.0060.01016.46
7.3.230.0140.00316.50
7.3.210.0000.01616.60
7.3.200.0090.01219.39
7.3.190.0070.01416.33
7.3.180.0120.00616.42
7.3.170.0090.00616.61
7.3.160.0070.00716.32
7.3.120.0110.00314.54
7.2.330.0130.00616.77
7.2.320.0030.01616.53
7.2.310.0150.00316.35
7.2.300.0030.01316.60
7.2.290.0070.01316.54
7.2.60.0210.00816.41
7.2.00.0000.01319.29
7.1.200.0090.00315.59
7.1.100.0000.01217.84
7.1.70.0070.00716.80
7.1.60.0110.01419.46
7.1.50.0040.01816.66
7.1.00.0000.07322.26
7.0.200.0050.00516.79
7.0.140.0070.06722.09
7.0.60.0070.07321.71
7.0.50.0100.03317.96
7.0.40.0070.03720.27
7.0.30.0130.05320.17
7.0.20.0200.04720.23
7.0.10.0070.04720.11
7.0.00.0070.07320.10
5.6.280.0100.06720.88
5.6.210.0070.06020.56
5.6.200.0030.05318.29
5.6.190.0030.04320.58
5.6.180.0400.04020.53
5.6.170.0230.03720.54
5.6.160.0100.07020.49
5.6.150.0100.08318.12
5.6.140.0100.03718.16
5.6.130.0030.06718.15
5.6.120.0100.03721.03
5.6.110.0100.08021.04
5.6.100.0230.05720.99
5.6.90.0130.08321.04
5.6.80.0130.07320.54
5.5.350.0000.07720.45
5.5.340.0100.04017.93
5.5.330.0130.08020.27
5.5.320.0130.05020.38
5.5.310.0170.07720.36
5.5.300.0200.04017.99
5.5.290.0030.04017.95
5.5.280.0170.07320.66
5.5.270.0070.05320.78
5.5.260.0070.08720.74
5.5.250.0030.07020.77
5.5.240.0030.03720.29
5.4.450.0500.06319.39
5.4.440.1170.08019.13
5.4.430.0970.07719.57
5.4.420.0130.05319.46
5.4.410.0130.07319.44
5.4.400.0000.06019.13
5.4.390.0000.06319.21
5.4.380.0130.06018.76
5.4.370.0030.04718.74
5.4.360.0100.03318.74
5.4.350.0060.03412.03
5.4.340.0070.03412.02
5.4.320.0050.03812.51
5.4.310.0040.04012.50
5.4.300.0070.03512.51
5.4.290.0100.04612.51
5.4.280.0100.04012.40
5.4.270.0060.04012.40
5.4.260.0120.04112.40
5.4.250.0070.04012.40
5.4.240.0080.04512.40
5.4.230.0060.06812.39
5.4.220.0100.04312.39
5.4.210.0110.04612.39
5.4.200.0120.03612.39
5.4.190.0080.03912.39
5.4.180.0160.05312.39
5.4.170.0090.05512.40
5.4.160.0060.04412.39
5.4.150.0070.04412.39
5.4.140.0090.03712.08
5.4.130.0050.04012.06
5.4.120.0090.05812.02
5.4.110.0100.03812.02
5.4.100.0060.03812.02
5.4.90.0100.03512.02
5.4.80.0040.04012.02
5.4.70.0090.03612.02
5.4.60.0030.03912.02
5.4.50.0080.03512.01
5.4.40.0100.04812.00
5.4.30.0100.04512.00
5.4.20.0070.03512.00
5.4.10.0060.03612.00
5.4.00.0050.03911.49
5.3.290.0070.05512.80
5.3.280.0050.04412.70
5.3.270.0060.04212.72
5.3.260.0060.04312.72
5.3.250.0060.04312.72
5.3.240.0070.04412.72
5.3.230.0050.04912.70
5.3.220.0120.05312.68
5.3.210.0130.04012.68
5.3.200.0040.05912.68
5.3.190.0080.03712.68
5.3.180.0090.04412.67
5.3.170.0120.04312.67
5.3.160.0080.04112.67
5.3.150.0110.07812.67
5.3.140.0070.04412.66
5.3.130.0080.04912.66
5.3.120.0070.04512.66
5.3.110.0140.05012.65
5.3.100.0070.04112.13
5.3.90.0080.04112.11
5.3.80.0100.05312.10
5.3.70.0080.06712.10
5.3.60.0150.05812.09
5.3.50.0100.06912.03
5.3.40.0090.05312.03
5.3.30.0090.04911.99
5.3.20.0090.03611.77
5.3.10.0070.04011.73
5.3.00.0090.04611.73
5.2.170.0080.0349.23
5.2.160.0090.0349.23
5.2.150.0130.0549.23
5.2.140.0080.0399.23
5.2.130.0070.0309.19
5.2.120.0060.0379.18
5.2.110.0100.0609.20
5.2.100.0050.0449.19
5.2.90.0150.0759.19
5.2.80.0320.1029.18
5.2.70.0140.0849.19
5.2.60.0100.0589.13
5.2.50.0200.0799.10
5.2.40.0170.0579.08
5.2.30.0150.0539.06
5.2.20.0060.0529.05
5.2.10.0230.0538.95
5.2.00.0110.0658.82
5.1.60.0090.0348.10
5.1.50.0350.0498.09
5.1.40.0040.0708.07
5.1.30.0280.0898.42
5.1.20.0140.0448.45
5.1.10.0130.0518.17
5.1.00.0130.0418.17
5.0.50.0040.0246.65
5.0.40.0090.0226.52
5.0.30.0090.0546.32
5.0.20.0060.0336.29
5.0.10.0020.0356.27
5.0.00.0050.0416.26
4.4.90.0110.0494.78
4.4.80.0050.0204.76
4.4.70.0110.0404.76
4.4.60.0080.0244.76
4.4.50.0080.0264.77
4.4.40.0170.0684.71
4.4.30.0090.0294.76
4.4.20.0070.0424.84
4.4.10.0140.0374.85
4.4.00.0070.0334.75
4.3.110.0160.0344.67
4.3.100.0070.0224.67
4.3.90.0040.0354.63
4.3.80.0240.0434.58
4.3.70.0080.0434.63
4.3.60.0030.0244.63
4.3.50.0060.0284.63
4.3.40.0060.0344.53
4.3.30.0110.0173.30
4.3.20.0040.0423.28
4.3.10.0030.0253.23
4.3.00.0100.0177.66

preferences:
40.45 ms | 401 KiB | 5 Q