3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Vehiculo{ private $puerta; private $ruedas; public function __construct($puerta = 2, $ruedas = 2){ $this->puerta = $puerta; $this->ruedas = $ruedas; } public function __get($atributo){ return $this->$atributo; } public function __set($atributo, $valor){ if(property_exists($this, $atributo)) { $this->$atributo = $valor; } } } $coche = new Vehiculo; echo $coche->puerta=5; if(property_exists($coche, "ruedas")) { echo "\nexiste la propiedad puerta\n"; }

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.0140.00716.63
8.3.50.0070.01317.98
8.3.40.0120.00318.97
8.3.30.0130.01018.53
8.3.20.0110.00419.15
8.3.10.0000.00821.09
8.3.00.0130.00317.91
8.2.180.0060.01018.43
8.2.170.0070.00722.96
8.2.160.0180.00018.96
8.2.150.0040.00424.18
8.2.140.0060.00924.66
8.2.130.0080.00019.70
8.2.120.0000.00826.35
8.2.110.0060.00319.31
8.2.100.0110.00017.78
8.2.90.0080.00017.63
8.2.80.0080.00418.67
8.2.70.0000.00817.80
8.2.60.0040.00417.93
8.2.50.0080.00318.10
8.2.40.0000.00819.34
8.2.30.0040.00419.44
8.2.20.0040.00417.94
8.2.10.0090.00017.98
8.2.00.0050.00221.33
8.1.280.0100.01325.92
8.1.270.0030.00623.88
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0090.00023.86
8.1.230.0040.00720.95
8.1.220.0040.00418.55
8.1.210.0100.00018.77
8.1.200.0040.00417.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0060.00318.51
8.1.160.0040.00418.94
8.1.150.0040.00418.82
8.1.140.0040.00417.59
8.1.130.0000.00719.03
8.1.120.0100.00017.36
8.1.110.0070.00017.43
8.1.100.0040.00417.43
8.1.90.0060.00617.41
8.1.80.0040.00717.49
8.1.70.0030.00617.46
8.1.60.0040.00417.47
8.1.50.0030.00817.49
8.1.40.0070.00317.49
8.1.30.0000.00817.61
8.1.20.0040.00417.65
8.1.10.0050.00317.45
8.1.00.0000.00817.59
8.0.300.0000.00819.88
8.0.290.0050.00516.62
8.0.280.0070.00018.45
8.0.270.0000.00817.22
8.0.260.0000.00717.19
8.0.250.0070.00017.00
8.0.240.0030.00316.94
8.0.230.0070.00016.95
8.0.220.0040.00416.87
8.0.210.0030.00316.85
8.0.200.0040.00416.99
8.0.190.0070.00016.88
8.0.180.0070.00016.79
8.0.170.0030.00616.83
8.0.160.0000.00716.81
8.0.150.0030.00516.73
8.0.140.0040.00416.88
8.0.130.0030.00513.35
8.0.120.0040.00416.83
8.0.110.0000.00716.81
8.0.100.0040.00416.71
8.0.90.0040.00416.84
8.0.80.0080.01016.85
8.0.70.0070.00016.88
8.0.60.0030.00516.79
8.0.50.0000.00816.84
8.0.30.0070.01217.01
8.0.20.0110.00717.42
8.0.10.0040.00417.09
8.0.00.0100.01016.86
7.4.330.0050.00015.55
7.4.320.0020.00516.46
7.4.300.0000.00616.59
7.4.290.0030.00316.64
7.4.280.0000.00816.55
7.4.270.0000.00716.40
7.4.260.0030.00316.49
7.4.250.0000.00916.48
7.4.240.0070.00016.60
7.4.230.0040.00416.72
7.4.220.0030.00516.58
7.4.210.0090.01016.60
7.4.200.0080.00016.37
7.4.160.0060.00916.53
7.4.140.0080.01117.86
7.4.130.0070.01116.48
7.4.120.0070.01216.56
7.4.110.0100.00716.73
7.4.100.0140.00316.35
7.4.90.0030.01916.53
7.4.80.0120.01019.39
7.4.70.0100.00616.36
7.4.60.0130.00916.36
7.4.50.0100.00616.29
7.4.40.0100.00716.50
7.4.00.0030.01015.04
7.3.330.0050.00013.39
7.3.320.0070.00013.14
7.3.310.0030.00316.30
7.3.300.0000.00716.24
7.3.290.0030.00316.24
7.3.280.0070.00916.38
7.3.260.0100.01016.55
7.3.240.0130.00316.43
7.3.230.0150.00316.40
7.3.210.0100.00716.35
7.3.200.0130.00316.38
7.3.190.0170.00716.64
7.3.180.0160.00016.50
7.3.170.0100.00716.67
7.3.160.0220.00316.55
7.3.10.0080.00616.69
7.3.00.0100.00716.91
7.2.330.0090.00916.67
7.2.320.0070.01016.72
7.2.310.0000.01816.38
7.2.300.0100.00716.80
7.2.290.0120.00916.73
7.2.130.0030.00617.14
7.2.120.0070.00416.89
7.2.110.0110.00416.67
7.2.100.0030.00917.03
7.2.90.0040.00716.87
7.2.80.0030.00617.03
7.2.70.0070.00716.91
7.2.60.0670.00715.89
7.2.50.0650.00815.97
7.2.40.0670.00716.01
7.2.30.0810.00616.09
7.2.20.0750.00516.06
7.2.10.0810.00416.12
7.2.00.0770.00816.21
7.1.250.0040.01116.05
7.1.200.0040.00815.91
7.1.170.1110.00813.82
7.1.160.1470.00916.97
7.1.150.1490.01016.75
7.1.140.1510.00816.98
7.1.130.1650.01416.88
7.1.120.1820.01316.85
7.1.110.1590.01016.38
7.1.100.1660.01316.29
7.1.90.1470.01015.79
7.1.80.1620.00916.06
7.1.70.1500.01015.34
7.1.60.1810.01632.89
7.1.50.1660.01332.71
7.1.40.1790.01632.58
7.1.30.2150.02232.71
7.1.20.1730.01432.75
7.1.10.1340.00914.83
7.1.00.1700.01014.64

preferences:
57.86 ms | 401 KiB | 5 Q