3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { } class Y { private $ts; public function __construct($ts) { $this->setTs(...$ts); } private function setTs(T ...$ts) { $this->ts = $ts; } } $c = new Y([new T, new T, new T]);

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.0110.00619.58
8.5.20.0110.00720.21
8.5.10.0110.00819.54
8.5.00.0200.00419.97
8.4.180.0120.01119.76
8.4.170.0100.01220.43
8.4.160.0120.01223.77
8.4.150.0060.00616.92
8.4.140.0150.00617.66
8.4.130.0110.01217.50
8.4.120.0120.00820.40
8.4.110.0100.01022.20
8.4.100.0100.00917.60
8.4.90.0100.01118.46
8.4.80.0050.00419.74
8.4.70.0120.00817.65
8.4.60.0080.01318.65
8.4.50.0060.00419.66
8.4.40.0140.00719.36
8.4.30.0060.00319.60
8.4.20.0130.00617.72
8.4.10.0080.00017.91
8.3.300.0080.01120.75
8.3.290.0120.00920.80
8.3.280.0140.00818.31
8.3.270.0110.01216.64
8.3.260.0110.00816.29
8.3.250.0120.00718.79
8.3.240.0140.00516.35
8.3.230.0150.00516.41
8.3.220.0050.00319.11
8.3.210.0120.01016.61
8.3.200.0060.00316.60
8.3.190.0130.00817.23
8.3.180.0110.00818.69
8.3.170.0110.00718.98
8.3.160.0150.00318.26
8.3.150.0160.00320.63
8.3.140.0100.00616.65
8.3.130.0060.00318.49
8.3.120.0100.01020.91
8.3.110.0000.00820.94
8.3.100.0030.00618.42
8.3.90.0040.00426.77
8.3.80.0030.00619.36
8.3.70.0060.00918.43
8.3.60.0110.00416.38
8.3.50.0160.00421.27
8.3.40.0110.00418.50
8.3.30.0120.00318.61
8.3.20.0040.00420.33
8.3.10.0070.00021.95
8.3.00.0000.00818.05
8.2.300.0150.00618.65
8.2.290.0120.00820.31
8.2.280.0070.00918.49
8.2.270.0030.01618.91
8.2.260.0090.00618.50
8.2.250.0030.00618.58
8.2.240.0040.00817.36
8.2.230.0040.00422.58
8.2.220.0080.01224.06
8.2.210.0080.00026.77
8.2.200.0060.00318.88
8.2.190.0220.00018.41
8.2.180.0140.00416.50
8.2.170.0070.01118.84
8.2.160.0100.00322.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00320.52
8.2.120.0000.00826.35
8.2.110.0080.01121.04
8.2.100.0040.00717.78
8.2.90.0000.00817.90
8.2.80.0000.00817.97
8.2.70.0070.00417.93
8.2.60.0040.00418.03
8.2.50.0050.00318.10
8.2.40.0000.00822.07
8.2.30.0040.00419.12
8.2.20.0000.00817.95
8.2.10.0060.00318.24
8.2.00.0070.00018.30
8.1.340.0060.00417.66
8.1.330.0120.00622.14
8.1.320.0090.00916.28
8.1.310.0040.00418.32
8.1.300.0060.00316.18
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0000.00723.85
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.14
8.1.230.0040.00720.72
8.1.220.0070.00020.90
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0110.00017.00
8.1.180.0050.00518.10
8.1.170.0000.00718.81
8.1.160.0040.00418.88
8.1.150.0080.00020.11
8.1.140.0070.00019.56
8.1.130.0000.00718.88
8.1.120.0040.00417.43
8.1.110.0040.00417.45
8.1.100.0060.00317.38
8.1.90.0050.00217.51
8.1.80.0050.00317.52
8.1.70.0030.00317.46
8.1.60.0040.00417.55
8.1.50.0050.00317.52
8.1.40.0090.00017.40
8.1.30.0030.00617.61
8.1.20.0000.00817.68
8.1.10.0040.00417.65
8.1.00.0030.00517.43
8.0.300.0040.00421.96
8.0.290.0070.00016.75
8.0.280.0050.00218.33
8.0.270.0050.00317.27
8.0.260.0030.00318.88
8.0.250.0070.00016.82
8.0.240.0000.00816.83
8.0.230.0060.00316.90
8.0.220.0070.00016.84
8.0.210.0030.00416.89
8.0.200.0030.00316.98
8.0.190.0050.00317.00
8.0.180.0000.00716.93
8.0.170.0040.00416.84
8.0.160.0040.00416.93
8.0.150.0000.00816.80
8.0.140.0040.00416.83
8.0.130.0000.00513.27
8.0.120.0050.00316.83
8.0.110.0040.00416.92
8.0.100.0050.00516.84
8.0.90.0000.00716.86
8.0.80.0090.00616.92
8.0.70.0030.00416.83
8.0.60.0000.00716.93
8.0.50.0000.00816.77
8.0.30.0120.00717.13
8.0.20.0090.01117.41
8.0.10.0040.00416.98
8.0.00.0070.01016.74
7.4.330.0030.00315.55
7.4.320.0050.00316.61
7.4.300.0040.00416.53
7.4.290.0030.00316.59
7.4.280.0040.00416.41
7.4.270.0000.00716.61
7.4.260.0050.00216.39
7.4.250.0050.00316.55
7.4.240.0070.00016.51
7.4.230.0000.00816.63
7.4.220.0060.01216.55
7.4.210.0110.00616.50
7.4.200.0040.00416.61
7.4.160.0080.01216.59
7.4.150.0060.01217.40
7.4.140.0110.00617.86
7.4.130.0110.00916.46
7.4.120.0090.01416.43
7.4.110.0070.01116.70
7.4.100.0070.01316.47
7.4.90.0060.01216.52
7.4.80.0100.00719.39
7.4.70.0110.00716.41
7.4.60.0100.00616.60
7.4.50.0040.01416.58
7.4.40.0060.01016.54
7.4.30.0030.01316.50
7.4.00.0000.01015.05
7.3.330.0060.00013.16
7.3.320.0000.00513.28
7.3.310.0030.00416.38
7.3.300.0030.00316.19
7.3.290.0070.00016.31
7.3.280.0100.00716.28
7.3.270.0140.00317.40
7.3.260.0080.01316.36
7.3.250.0100.00616.34
7.3.240.0120.00916.46
7.3.230.0110.01216.41
7.3.210.0110.00716.54
7.3.200.0060.00916.41
7.3.190.0040.01216.27
7.3.180.0030.01316.58
7.3.170.0140.00816.36
7.3.160.0030.01316.60
7.2.330.0140.00716.70
7.2.320.0030.01416.53
7.2.310.0060.01016.40
7.2.300.0080.01516.34
7.2.290.0060.01016.64
7.2.60.0080.00816.65
7.2.00.0090.00319.42
7.1.200.0000.01215.69
7.1.70.0000.00716.97
7.1.60.0030.00916.89
7.1.50.0000.01516.89
7.1.40.0500.01332.31
7.1.30.0800.01332.40
7.1.20.0630.00732.39
7.1.10.0500.01314.44
7.1.00.0470.01014.72
7.0.200.0070.00716.79
7.0.180.0500.01714.39
7.0.170.0900.01014.23
7.0.160.0730.01314.29
7.0.150.0530.00714.28
7.0.140.0770.00714.25
7.0.130.0370.01314.62
7.0.120.0530.01014.57
7.0.110.0370.01014.57
7.0.100.0400.01314.41
7.0.90.0430.00314.33
7.0.80.0500.00014.45
7.0.70.0430.01014.33
7.0.60.0630.00714.39
7.0.50.0430.00314.44
7.0.40.0330.01314.48
7.0.30.0370.01014.51
7.0.20.0330.01314.24
7.0.10.0400.01014.46
7.0.00.0430.00714.48

preferences:
63.25 ms | 1419 KiB | 5 Q