3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingDoer { protected $things; public function __construct(string $string = NULL, int $int = null, Throwable $throwable = NULL) { $this->things[] = $string; $this->things[] = $int; $this->things[] = $throwable; } public function do() { print_r($this->things); } } $thing = new ThingDoer(); $thing->do();

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.70.0130.00316.75
8.3.60.0130.00316.47
8.3.50.0050.01117.50
8.3.40.0140.00318.85
8.3.30.0110.00318.67
8.3.20.0050.00320.34
8.3.10.0070.00421.95
8.3.00.0070.00021.92
8.2.180.0090.00618.04
8.2.170.0110.00322.96
8.2.160.0140.00719.09
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00321.03
8.2.120.0030.00526.35
8.2.110.0060.00322.25
8.2.100.0090.00319.64
8.2.90.0000.00819.08
8.2.80.0000.00818.04
8.2.70.0070.00317.38
8.2.60.0000.00718.03
8.2.50.0080.00018.10
8.2.40.0000.00820.40
8.2.30.0000.00821.04
8.2.20.0070.00318.13
8.2.10.0000.00718.11
8.2.00.0080.00018.05
8.1.280.0120.00925.92
8.1.270.0070.00022.01
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00419.16
8.1.230.0040.00719.08
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0000.00917.35
8.1.180.0070.00018.10
8.1.170.0030.00619.02
8.1.160.0000.00719.00
8.1.150.0020.00520.57
8.1.140.0000.00719.50
8.1.130.0000.00718.74
8.1.120.0030.00417.29
8.1.110.0070.00017.33
8.1.100.0050.00317.30
8.1.90.0020.00517.37
8.1.80.0040.00417.38
8.1.70.0000.00717.40
8.1.60.0060.00517.48
8.1.50.0000.00817.52
8.1.40.0030.00617.38
8.1.30.0040.00417.61
8.1.20.0070.00017.59
8.1.10.0040.00417.56
8.1.00.0070.00017.32
8.0.300.0000.00719.95
8.0.290.0000.00816.58
8.0.280.0000.00718.47
8.0.270.0000.00717.07
8.0.260.0030.00316.77
8.0.250.0030.00316.93
8.0.240.0030.00716.83
8.0.230.0060.00316.91
8.0.220.0030.00316.70
8.0.210.0000.00716.73
8.0.200.0050.00216.87
8.0.190.0000.00816.84
8.0.180.0030.00616.87
8.0.170.0040.00416.74
8.0.160.0070.00016.78
8.0.150.0070.00016.77
8.0.140.0050.00316.82
8.0.130.0000.00513.25
8.0.120.0000.00716.79
8.0.110.0050.00216.83
8.0.100.0030.00416.78
8.0.90.0040.00416.84
8.0.80.0030.02016.86
8.0.70.0080.00016.95
8.0.60.0000.00816.69
8.0.50.0060.00316.83
8.0.30.0080.01016.83
8.0.20.0110.01017.40
8.0.10.0050.00316.99
8.0.00.0060.01616.86
7.4.330.0000.00615.55
7.4.320.0030.00316.52
7.4.300.0070.00016.48
7.4.290.0070.00016.42
7.4.280.0000.00716.51
7.4.270.0000.00616.64
7.4.260.0030.00316.53
7.4.250.0000.00716.61
7.4.240.0030.00316.51
7.4.230.0030.00316.61
7.4.220.0140.00416.55
7.4.210.0030.01016.62
7.4.200.0030.00316.41
7.4.160.0090.00716.30
7.4.150.0180.00017.40
7.4.140.0090.00817.86
7.4.130.0120.00616.65
7.4.120.0070.01116.41
7.4.110.0090.01316.46
7.4.100.0030.01416.36
7.4.90.0100.00816.41
7.4.80.0060.01919.39
7.4.70.0060.00916.42
7.4.60.0100.00616.44
7.4.50.0090.00916.27
7.4.40.0100.00716.33
7.4.30.0060.01716.54
7.4.00.0060.00914.82
7.3.330.0000.00513.20
7.3.320.0050.00013.23
7.3.310.0030.00316.34
7.3.300.0030.00316.20
7.3.290.0060.01016.21
7.3.280.0060.00916.22
7.3.270.0090.00917.40
7.3.260.0130.00316.24
7.3.250.0140.00716.24
7.3.240.0150.00216.52
7.3.230.0110.00716.43
7.3.210.0030.01316.23
7.3.200.0110.00716.41
7.3.190.0110.00716.51
7.3.180.0100.01316.23
7.3.170.0040.01816.21
7.3.160.0100.00616.38
7.2.330.0100.00716.42
7.2.320.0100.01316.73
7.2.310.0070.01016.58
7.2.300.0080.01116.32
7.2.290.0130.00316.56
7.2.60.0110.00417.00
7.2.00.0030.01019.31
7.1.200.0290.00015.77
7.1.100.0040.01118.19
7.1.70.0010.01617.17
7.1.60.0210.01134.82
7.1.50.0330.01334.66
7.1.40.0290.01034.24
7.1.30.0280.01034.51
7.1.20.0350.01834.53
7.1.10.0070.01316.58
7.1.00.0040.01116.64
7.0.200.0040.01516.57
7.0.190.0110.01216.64
7.0.180.0120.01716.40
7.0.170.0060.00916.45
7.0.160.0080.01616.20
7.0.150.0030.01816.28
7.0.140.0060.00916.06
7.0.130.0000.01616.32
7.0.120.0090.00916.29
7.0.110.0100.00716.28
7.0.100.0000.01716.36
7.0.90.0030.01316.18
7.0.80.0000.01416.27
7.0.70.0120.00916.39
7.0.60.0090.00616.18
7.0.50.0140.00416.19
7.0.40.0040.01216.44
7.0.30.0060.01216.46
7.0.20.0060.00816.25
7.0.10.0060.01316.23
7.0.00.0110.00716.54

preferences:
56.48 ms | 401 KiB | 5 Q