3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Aircraft { /** * @var string */ private $aircraftType; /** * @var string */ private $departureCity; /** * @var string */ private $arrivalCity; public function __construct( string $aircraftType, string $departureCity, string $arrivalCity ) { $this->aircraftType = $aircraftType; $this->departureCity = $departureCity; $this->arrivalCity = $arrivalCity; } public function __toString(): string { return sprintf( "Bienvenue à bord de notre %s.\n" . "Ce vol est en décollage imminent de %s et aura pour arrivée %s.", $this->aircraftType(), $this->departureCity(), $this->arrivalCity() ); } public function aircraftType(): string { return $this->aircraftType; } public function departureCity(): string { return $this->departureCity; } public function arrivalCity(): string { return $this->arrivalCity; } } echo new Aircraft('Airbus 319 Bravo', 'Toulouse', 'Paris');

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.0090.00918.43
8.3.50.0150.00018.19
8.3.40.0150.00318.67
8.3.30.0140.00318.67
8.3.20.0000.00821.90
8.3.10.0070.00021.81
8.3.00.0050.00321.89
8.2.180.0070.00725.92
8.2.170.0120.00622.96
8.2.160.0110.00322.18
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00719.27
8.2.120.0070.00026.35
8.2.110.0110.00019.31
8.2.100.0090.00317.72
8.2.90.0040.00417.63
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0050.00318.05
8.2.50.0060.00318.10
8.2.40.0050.00220.42
8.2.30.0000.00719.28
8.2.20.0070.00018.13
8.2.10.0040.00418.15
8.2.00.0000.00718.12
8.1.280.0170.00725.92
8.1.270.0040.00422.19
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0090.00022.29
8.1.230.0070.00421.01
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0000.00918.44
8.1.160.0020.00518.79
8.1.150.0000.00718.88
8.1.140.0030.00319.09
8.1.130.0000.00717.64
8.1.120.0030.00317.43
8.1.110.0030.00617.39
8.1.100.0050.00217.36
8.1.90.0040.00417.47
8.1.80.0050.00217.45
8.1.70.0030.00317.39
8.1.60.0040.00417.60
8.1.50.0000.00717.55
8.1.40.0000.00817.45
8.1.30.0040.00417.59
8.1.20.0030.00517.67
8.1.10.0000.00817.46
8.1.00.0040.00417.54
8.0.300.0050.00218.77
8.0.290.0080.00016.59
8.0.280.0030.00318.33
8.0.270.0000.00717.27
8.0.260.0000.00617.35
8.0.250.0000.00716.94
8.0.240.0000.00716.89
8.0.230.0080.00017.00
8.0.220.0030.00316.81
8.0.210.0030.00316.91
8.0.200.0000.00716.98
8.0.190.0050.00316.99
8.0.180.0000.00816.89
8.0.170.0000.00916.82
8.0.160.0040.00416.92
8.0.150.0040.00416.92
8.0.140.0040.00416.84
8.0.130.0000.00613.29
8.0.120.0000.00716.77
8.0.110.0040.00416.85
8.0.100.0040.00416.78
8.0.90.0040.00416.70
8.0.80.0120.00416.84
8.0.70.0070.00016.78
8.0.60.0050.00316.91
8.0.50.0050.00316.86
8.0.30.0070.01116.99
8.0.20.0150.00617.40
8.0.10.0050.00317.03
8.0.00.0110.00716.82
7.4.330.0030.00315.55
7.4.320.0040.00416.42
7.4.300.0030.00316.51
7.4.290.0000.00716.39
7.4.280.0040.00416.46
7.4.270.0080.00016.48
7.4.260.0000.00716.44
7.4.250.0060.00316.55
7.4.240.0000.00716.49
7.4.230.0040.00416.67
7.4.220.0040.00416.65
7.4.210.0110.00416.59
7.4.200.0000.00716.64
7.4.150.0110.01517.40
7.4.140.0120.00817.86
7.4.130.0110.00916.50
7.4.120.0090.01216.43
7.4.110.0040.01516.44
7.4.100.0100.00716.44
7.4.90.0140.00416.48
7.4.80.0070.01319.39
7.4.70.0050.01416.44
7.4.60.0130.01016.59
7.4.50.0070.01016.49
7.4.40.0140.00716.24
7.4.30.0150.00516.67
7.4.00.0070.00715.14
7.3.330.0030.00313.29
7.3.320.0000.00613.29
7.3.310.0000.00716.16
7.3.300.0030.00316.27
7.3.290.0040.00416.09
7.3.280.0100.00616.26
7.3.270.0060.01217.40
7.3.260.0120.00816.46
7.3.250.0130.00716.30
7.3.240.0070.01016.38
7.3.230.0090.00916.49
7.3.210.0110.00816.38
7.3.200.0060.01116.34
7.3.190.0070.01016.22
7.3.180.0100.00716.23
7.3.170.0140.00316.34
7.3.160.0040.01116.27
7.2.330.0070.01016.75
7.2.320.0100.00716.63
7.2.310.0080.00816.54
7.2.300.0140.00316.73
7.2.290.0070.01016.58
7.2.60.0070.01416.53
7.2.00.0030.02019.99
7.1.200.0200.01015.09
7.1.120.0110.00718.52
7.1.110.0070.00718.00
7.1.100.0030.01018.07
7.1.90.0060.01117.96
7.1.80.0030.01318.22
7.1.70.0040.01216.95
7.1.60.0180.01534.82
7.1.50.0160.01034.53
7.1.40.0110.01934.48
7.1.30.0230.00934.28
7.1.20.0240.01134.37
7.1.10.0030.01316.41
7.1.00.0080.01116.51

preferences:
36.81 ms | 401 KiB | 5 Q