3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { private bool $modified = false; public string $breed = 'labrador' { get { if ($this->modified) { return $this->breed . ' (modified)'; } return strtolower($this->breed); } set(string $value) { $this->breed = strtolower($value); $this->modified = true; } } } $dog = new Dog(); $dog->breed = 'Akita'; echo $dog->breed;

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.5.30.0350.01017.57
8.5.20.0250.01316.73
8.5.10.0320.00816.73
8.5.00.0310.01116.73
8.4.180.0340.00819.61
8.4.170.0140.00719.62
8.4.160.0370.00919.47
8.4.150.0330.01019.66
8.4.140.0340.00817.62
8.4.130.0310.01217.46
8.4.120.0360.00817.65
8.4.110.0350.01217.55
8.4.100.0400.00917.75
8.4.90.0380.01117.77
8.4.80.0350.00917.86
8.4.70.0360.00917.68
8.4.60.0420.00717.74
8.4.50.0360.00917.78
8.4.40.0360.01017.81
8.4.30.0400.00817.62
8.4.20.0330.01417.50
8.4.10.0380.01217.42
8.3.300.0380.01018.27
8.3.290.0310.01018.30
8.3.280.0210.00718.30
8.3.270.0420.00416.73
8.3.260.0380.00716.77
8.3.250.0360.00716.80
8.3.240.0330.00916.87
8.3.230.0380.00316.87
8.3.220.0360.00816.74
8.3.210.0380.00716.73
8.3.200.0330.01216.73
8.3.190.0350.01016.73
8.3.180.0350.01016.77
8.3.170.0420.00816.73
8.3.160.0390.00716.82
8.3.150.0380.00916.73
8.3.140.0400.00816.84
8.3.130.0290.01316.73
8.3.120.0360.00616.73
8.3.110.0310.01016.73
8.3.100.0400.00816.73
8.3.90.0360.01116.73
8.3.80.0360.01216.73
8.3.70.0410.01016.73
8.3.60.0360.00917.00
8.3.50.0380.00916.73
8.3.40.0340.01117.89
8.3.30.0270.01017.86
8.3.20.0280.01017.67
8.3.10.0350.00917.87
8.3.00.0150.01117.88

preferences:
143.36 ms | 1011 KiB | 7 Q