3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingDoer { protected $things; public function __construct(string $string = NULL, int $int = 0, 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.60.0070.00716.75
8.3.50.0040.01116.29
8.3.40.0120.00318.67
8.3.30.0110.00418.72
8.3.20.0060.00320.26
8.3.10.0060.00323.66
8.3.00.0080.00022.09
8.2.180.0110.00716.38
8.2.170.0110.00422.96
8.2.160.0170.00319.04
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.18
8.2.120.0080.00026.35
8.2.110.0090.00022.06
8.2.100.0060.00619.46
8.2.90.0000.00819.05
8.2.80.0050.00317.97
8.2.70.0080.00417.34
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0000.00720.47
8.2.30.0060.00321.00
8.2.20.0030.00617.95
8.2.10.0060.00317.93
8.2.00.0040.00417.96
8.1.280.0070.01625.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00019.21
8.1.230.0040.00818.97
8.1.220.0060.00317.79
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0080.00017.23
8.1.180.0070.00018.10
8.1.170.0000.00819.01
8.1.160.0000.00718.92
8.1.150.0080.00020.65
8.1.140.0040.00419.51
8.1.130.0000.00718.82
8.1.120.0000.00717.33
8.1.110.0000.00817.40
8.1.100.0000.00817.38
8.1.90.0000.00717.48
8.1.80.0030.00317.45
8.1.70.0000.00717.35
8.1.60.0030.00617.47
8.1.50.0030.00517.48
8.1.40.0030.00517.38
8.1.30.0040.00417.61
8.1.20.0040.00417.65
8.1.10.0040.00417.38
8.1.00.0040.00417.45
8.0.300.0040.00420.16
8.0.290.0000.00816.63
8.0.280.0070.00018.34
8.0.270.0040.00417.16
8.0.260.0030.00316.63
8.0.250.0030.00316.94
8.0.240.0030.00616.83
8.0.230.0050.00316.86
8.0.220.0070.00016.80
8.0.210.0040.00416.89
8.0.200.0000.00616.78
8.0.190.0000.01016.76
8.0.180.0060.00316.85
8.0.170.0000.00816.86
8.0.160.0030.00516.91
8.0.150.0070.00016.84
8.0.140.0000.00816.76
8.0.130.0030.00313.23
8.0.120.0000.00716.73
8.0.110.0080.00016.81
8.0.100.0040.00416.87
8.0.90.0050.00316.71
8.0.80.0180.00616.84
8.0.70.0030.00616.83
8.0.60.0050.00316.71
8.0.50.0050.00316.76
8.0.30.0120.00617.14
8.0.20.0080.01017.40
8.0.10.0000.00816.90
8.0.00.0090.00916.87
7.4.330.0030.00315.55
7.4.320.0030.00316.40
7.4.300.0000.00716.43
7.4.290.0000.00716.40
7.4.280.0030.00616.60
7.4.270.0040.00416.52
7.4.260.0070.00016.48
7.4.250.0040.00416.55
7.4.240.0070.00016.64
7.4.230.0030.00316.70
7.4.220.0070.01116.61
7.4.210.0070.01116.47
7.4.200.0000.00716.63
7.4.160.0080.01116.42
7.4.150.0130.00617.40
7.4.140.0100.00617.86
7.4.130.0140.00416.25
7.4.120.0100.00916.47
7.4.110.0140.00416.57
7.4.100.0190.00016.32
7.4.90.0100.00716.48
7.4.80.0100.01319.39
7.4.70.0030.01316.55
7.4.60.0060.01516.52
7.4.50.0080.00316.39
7.4.40.0110.00516.38
7.4.30.0030.01416.60
7.4.00.0030.01014.78
7.3.330.0000.00513.10
7.3.320.0050.00013.24
7.3.310.0000.00716.29
7.3.300.0030.00316.19
7.3.290.0060.01016.20
7.3.280.0080.00816.23
7.3.270.0230.01717.40
7.3.260.0060.01116.28
7.3.250.0140.00716.33
7.3.240.0060.01116.41
7.3.230.0110.00816.59
7.3.210.0060.01016.48
7.3.200.0070.01016.41
7.3.190.0120.00916.35
7.3.180.0070.01016.12
7.3.170.0140.00716.26
7.3.160.0120.00316.52
7.2.330.0100.00716.33
7.2.320.0120.00916.34
7.2.310.0060.01216.71
7.2.300.0090.01216.43
7.2.290.0040.01216.71
7.2.60.0040.01116.85
7.2.00.0030.00919.58
7.1.200.0070.00715.60
7.1.100.0030.00718.12
7.1.70.0030.01417.13
7.1.60.0210.00934.96
7.1.50.0270.01234.57
7.1.40.0220.01034.44
7.1.30.0220.02234.65
7.1.20.0190.01634.66
7.1.10.0030.01616.58
7.1.00.0110.01216.51
7.0.200.0090.00816.68
7.0.190.0160.00316.41
7.0.180.0070.01416.26
7.0.170.0090.00916.19
7.0.160.0090.01216.16
7.0.150.0100.01016.16
7.0.140.0040.01616.51
7.0.130.0000.02016.29
7.0.120.0090.00916.43
7.0.110.0110.00816.23
7.0.100.0090.01216.31
7.0.90.0110.00716.33
7.0.80.0070.01116.18
7.0.70.0100.00916.21
7.0.60.0060.01216.11
7.0.50.0030.01516.46
7.0.40.0090.01016.43
7.0.30.0060.01216.42
7.0.20.0110.00716.38
7.0.10.0070.01116.42
7.0.00.0120.00616.51

preferences:
40.71 ms | 401 KiB | 5 Q