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 __construct() { parent::__construct(); $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.0070.00716.63
8.3.50.0160.00522.00
8.3.40.0110.00718.85
8.3.30.0110.00718.83
8.3.20.0070.00020.16
8.3.10.0000.01421.82
8.3.00.0100.00017.25
8.2.180.0120.00618.11
8.2.170.0110.00322.96
8.2.160.0080.01120.30
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0110.00326.16
8.2.120.0040.00422.21
8.2.110.0060.00322.08
8.2.100.0090.00319.76
8.2.90.0040.00819.07
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0040.00419.75
8.2.30.0060.00618.14
8.2.20.0050.00317.75
8.2.10.0070.00018.04
8.2.00.0050.00517.51
8.1.280.0070.00725.92
8.1.270.0080.00022.17
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.00923.92
8.1.230.0000.01019.15
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00817.35
8.1.180.0000.01019.14
8.1.170.0000.00718.49
8.1.160.0000.00721.99
8.1.150.0040.00418.58
8.1.140.0040.00417.32
8.1.130.0000.00717.91
8.1.120.0000.00817.37
8.1.110.0000.00717.45
8.1.100.0000.00717.48
8.1.90.0040.00417.36
8.1.80.0000.00717.30
8.1.70.0030.00317.39
8.1.60.0030.00617.64
8.1.50.0070.00017.54
8.1.40.0030.00617.54
8.1.30.0090.00017.50
8.1.20.0050.00317.74
8.1.10.0040.00417.58
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0000.00917.16
8.0.280.0000.00718.47
8.0.270.0030.00317.24
8.0.260.0030.00317.21
8.0.250.0030.00316.89
8.0.240.0060.00316.95
8.0.230.0030.00316.83
8.0.220.0030.00316.91
8.0.210.0070.00016.84
8.0.200.0040.00416.93
8.0.190.0000.00716.91
8.0.180.0040.00416.89
8.0.170.0090.00016.77
8.0.160.0000.00716.98
8.0.150.0030.00316.72
8.0.140.0050.00316.81
8.0.130.0050.00013.28
8.0.120.0000.00716.80
8.0.110.0040.00416.93
8.0.100.0040.00416.95
8.0.90.0000.00716.81
8.0.80.0120.00316.81
8.0.70.0000.00816.74
8.0.60.0050.00316.80
8.0.50.0000.00716.73
8.0.30.0070.01517.11
8.0.20.0050.01417.40
8.0.10.0000.00717.09
8.0.00.0060.01116.65
7.4.330.0000.00515.01
7.4.320.0030.00316.41
7.4.300.0000.00716.57
7.4.290.0070.00016.52
7.4.280.0040.00416.42
7.4.270.0000.00816.54
7.4.260.0070.00016.53
7.4.250.0070.00016.52
7.4.240.0040.00316.53
7.4.230.0000.00716.66
7.4.220.0100.00716.46
7.4.210.0050.01116.61
7.4.200.0070.00016.44
7.4.190.0000.00716.66
7.4.160.0040.01116.46
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0090.00916.54
7.4.120.0090.00716.56
7.4.110.0110.01116.46
7.4.100.0070.01116.43
7.4.90.0080.00816.49
7.4.80.0150.00319.39
7.4.70.0080.01316.56
7.4.60.0070.01016.50
7.4.50.0000.00816.67
7.4.40.0100.01116.57
7.4.30.0130.00416.42
7.4.00.0070.00914.91
7.3.330.0030.00313.16
7.3.320.0050.00013.27
7.3.310.0000.00716.29
7.3.300.0000.00716.30
7.3.290.0050.00816.29
7.3.280.0060.01416.30
7.3.270.0140.00317.40
7.3.260.0100.01316.63
7.3.250.0090.01016.31
7.3.240.0140.00316.54
7.3.230.0070.01016.51
7.3.210.0060.01116.40
7.3.200.0060.01319.39
7.3.190.0070.01416.28
7.3.180.0070.01116.48
7.3.170.0080.00816.27
7.3.160.0110.00416.36
7.3.120.0080.00814.79
7.3.110.0130.00314.57
7.3.100.0120.00314.85
7.3.90.0040.01114.95
7.3.80.0030.00614.91
7.3.70.0000.01414.89
7.3.60.0070.00414.70
7.3.50.0070.01014.69
7.3.40.0060.01014.94
7.3.30.0170.00014.70
7.3.20.0060.00916.61
7.3.10.0120.00316.59
7.3.00.0070.00416.70
7.2.330.0100.00716.73
7.2.320.0050.01616.79
7.2.310.0140.00416.86
7.2.300.0030.01216.35
7.2.290.0210.00016.74
7.2.250.0070.00714.92
7.2.240.0040.01515.17
7.2.230.0110.00414.98
7.2.220.0000.01315.19
7.2.210.0030.00615.13
7.2.200.0060.00315.20
7.2.190.0090.00914.74
7.2.180.0070.01115.16
7.2.170.0060.00915.25
7.2.60.0060.00916.94
7.2.00.0000.01319.67
7.1.330.0070.00715.72
7.1.320.0030.00615.70
7.1.310.0070.00315.50
7.1.300.0070.00715.79
7.1.290.0040.01115.74
7.1.280.0050.00515.46
7.1.270.0030.01015.61
7.1.260.0060.00915.75
7.1.200.0040.00415.66
7.1.100.0070.00718.15
7.1.70.0060.00317.13
7.1.60.0110.01419.46
7.1.50.0140.00716.76
7.1.00.0030.07322.27
7.0.200.0070.00316.82
7.0.140.0070.07022.07
7.0.60.0070.05319.95
7.0.50.0170.07317.87
7.0.40.0200.03020.23
7.0.30.0300.06020.20
7.0.20.0200.05720.16
7.0.10.0100.04020.26
7.0.00.0070.07020.13
5.6.280.0030.07320.87
5.6.210.0100.06720.57
5.6.200.0100.03318.27
5.6.190.0070.05720.64
5.6.180.0070.04720.61
5.6.170.0230.04720.39
5.6.160.0070.05720.48
5.6.150.0100.07718.26
5.6.140.0070.07718.27
5.6.130.0030.04018.14
5.6.120.0100.03321.03
5.6.110.0100.08020.99
5.6.100.0070.05721.14
5.6.90.0130.08020.97
5.6.80.0130.07020.46
5.5.350.2900.03020.41
5.5.340.0030.07717.95
5.5.330.0030.04020.36
5.5.320.0300.06720.52
5.5.310.0300.07720.38
5.5.300.0000.05018.00
5.5.290.0100.06718.02
5.5.280.0030.08020.82
5.5.270.0000.09020.88
5.5.260.0070.04720.80
5.5.250.0030.04020.70
5.5.240.0030.07720.16
5.4.450.0170.06019.34
5.4.440.0200.06319.49
5.4.430.0170.06019.46
5.4.420.0200.05019.34
5.4.410.0330.04719.35
5.4.400.0130.06019.29
5.4.390.0200.06018.98
5.4.380.0170.05018.56
5.4.370.0070.06018.77
5.4.360.0130.05018.76
5.4.350.0130.05318.74
5.4.340.0300.05318.50
5.4.320.0080.05212.51
5.4.310.0070.05412.51
5.4.300.0060.05312.51
5.4.290.0100.04512.50
5.4.280.0040.05712.40
5.4.270.0060.06412.40
5.4.260.0160.08012.40
5.4.250.0180.14012.40
5.4.240.0120.05112.40
5.4.230.0070.05812.39
5.4.220.0120.07512.39
5.4.210.0140.09912.39
5.4.200.0090.08512.39
5.4.190.0110.05712.39
5.4.180.0060.05412.39
5.4.170.0070.05312.40
5.4.160.0120.08212.40
5.4.150.0080.05112.39
5.4.140.0050.05512.08
5.4.130.0140.05812.07
5.4.120.0090.05412.02
5.4.110.0090.05212.02
5.4.100.0090.05012.02
5.4.90.0070.04212.02
5.4.80.0110.04312.02
5.4.70.0110.03412.02
5.4.60.0070.04912.01
5.4.50.0120.04412.02
5.4.40.0100.04512.00
5.4.30.0090.04512.00
5.4.20.0090.04412.00
5.4.10.0030.04312.00
5.4.00.0130.04511.49
5.3.290.0070.03912.80
5.3.280.0090.05112.71
5.3.270.0090.05812.72
5.3.260.0080.05612.72
5.3.250.0070.06912.72
5.3.240.0070.06512.72
5.3.230.0070.06112.71
5.3.220.0100.05712.68
5.3.210.0080.05912.68
5.3.200.0050.05912.68
5.3.190.0100.05412.68
5.3.180.0090.05312.67
5.3.170.0100.05612.67
5.3.160.0070.05412.67
5.3.150.0100.05112.68
5.3.140.0130.07112.66
5.3.130.0110.06512.66
5.3.120.0070.05512.66
5.3.110.0090.05412.65
5.3.100.0150.05812.13
5.3.90.0070.04912.11
5.3.80.0080.04012.10
5.3.70.0090.04112.10
5.3.60.0090.04112.08
5.3.50.0120.05212.03
5.3.40.0120.05112.03
5.3.30.0180.08211.99
5.3.20.0100.04911.77
5.3.10.0050.05511.74
5.3.00.0140.06111.73
5.2.170.0080.0669.23
5.2.160.0080.0469.23
5.2.150.0050.0479.23
5.2.140.0100.0729.23
5.2.130.0080.0489.18
5.2.120.0090.0379.18
5.2.110.0100.0489.19
5.2.100.0180.0629.20
5.2.90.0060.0569.19
5.2.80.0100.0569.18
5.2.70.0080.0389.18
5.2.60.0090.0369.13
5.2.50.0100.0949.10
5.2.40.0120.0579.08
5.2.30.0110.0399.06
5.2.20.0140.0789.05
5.2.10.0070.0318.95
5.2.00.0100.0568.81
5.1.60.0150.0378.10
5.1.50.0100.0308.09
5.1.40.0050.0288.07
5.1.30.0060.0288.42
5.1.20.0090.0408.45
5.1.10.0060.0448.17
5.1.00.0060.0528.17
5.0.50.0060.0416.65
5.0.40.0100.0436.51
5.0.30.0070.0426.32
5.0.20.0080.0346.29
5.0.10.0230.0846.27
5.0.00.0070.0476.27
4.4.90.0090.1064.78
4.4.80.0100.0454.75
4.4.70.0100.0394.76
4.4.60.0030.0204.76
4.4.50.0040.0254.77
4.4.40.0060.0304.71
4.4.30.0010.0184.76
4.4.20.0030.0244.84
4.4.10.0060.0244.85
4.4.00.0050.0364.76
4.3.110.0090.0354.67
4.3.100.0100.0444.66
4.3.90.0040.0284.64
4.3.80.0050.0334.58
4.3.70.0030.0224.63
4.3.60.0060.0204.63
4.3.50.0100.0324.63
4.3.40.0040.0324.54
4.3.30.0050.0223.30
4.3.20.0030.0273.28
4.3.10.0020.0243.23
4.3.00.0000.0307.34

preferences:
45.72 ms | 400 KiB | 5 Q