3v4l.org

run code in 300+ PHP versions simultaneously
<?php class 🍏 {} class 🍉 {} class 🍍 {} class 🍌 {} class 🥗 { protected $🎁🎁 = []; public function add($🎁) { $this->🎁🎁[] = $🎁; } public function __toString() { $🎁2 = []; foreach($this->🎁🎁 as $🎁){ $🎁2[get_class($🎁)] = ($🎁2[get_class($🎁)] ?? 0) + 1; } foreach($🎁2 as $🎁3 => $🎁4){ $🎁2[$🎁3] = $🎁4 . ' ' . $🎁3; } echo implode(', ', $🎁2); } } $🥗 = new 🥗(); $🥗->add(new 🍏()); $🥗->add(new 🍉()); $🥗->add(new 🍍()); $🥗->add(new 🍉()); $🥗->add(new 🍉()); $🥗->add(new 🍏()); $🥗->add(new 🍉()); $🥗->add(new 🍏()); echo $🥗;

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.40.0120.00318.66
8.3.30.0040.01118.80
8.3.20.0080.00019.14
8.3.10.0000.00821.74
8.3.00.0040.00420.62
8.2.170.0170.00322.96
8.2.160.0100.00322.12
8.2.150.0000.01025.66
8.2.140.0040.00424.66
8.2.130.0070.00022.07
8.2.120.0030.00726.35
8.2.110.0070.00320.35
8.2.100.0080.00417.80
8.2.90.0040.00419.22
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0060.00317.93
8.2.50.0060.00318.10
8.2.40.0040.00422.17
8.2.30.0080.00021.16
8.2.20.0070.00018.14
8.2.10.0000.00718.13
8.2.00.0070.00018.13
8.1.270.0040.00422.10
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.53
8.1.230.0110.00019.07
8.1.220.0030.00617.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.13
8.1.180.0000.00718.10
8.1.170.0000.00818.59
8.1.160.0040.00419.03
8.1.150.0000.00820.71
8.1.140.0090.00019.63
8.1.130.0040.00418.90
8.1.120.0000.00817.45
8.1.110.0040.00417.38
8.1.100.0030.00417.50
8.1.90.0050.00317.38
8.1.80.0050.00317.48
8.1.70.0000.00717.52
8.1.60.0070.00317.67
8.1.50.0080.00017.48
8.1.40.0040.00417.45
8.1.30.0040.00417.56
8.1.20.0080.00017.68
8.1.10.0060.00317.63
8.1.00.0030.00517.57
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0070.00018.39
8.0.270.0030.00317.15
8.0.260.0000.00716.89
8.0.250.0000.00617.02
8.0.240.0050.00317.05
8.0.230.0050.00217.01
8.0.220.0030.00316.86
8.0.210.0000.00716.95
8.0.200.0060.00016.90
8.0.190.0030.00516.93
8.0.180.0080.00416.98
8.0.170.0050.00216.97
8.0.160.0000.00817.02
8.0.150.0030.00316.95
8.0.140.0080.00016.99
8.0.130.0030.00313.40
8.0.120.0030.00616.97
8.0.110.0030.00516.80
8.0.100.0050.00316.93
8.0.90.0030.00616.96
8.0.80.0070.00717.02
8.0.70.0000.00816.86
8.0.60.0000.00716.84
8.0.50.0030.00516.94
8.0.30.0150.00617.31
8.0.20.0130.00717.40
8.0.10.0050.00317.07
8.0.00.0080.00917.01
7.4.330.0000.00615.55
7.4.320.0030.00316.52
7.4.300.0000.00616.43
7.4.290.0000.00816.55
7.4.280.0060.00316.50
7.4.270.0030.00316.48
7.4.260.0030.00313.19
7.4.250.0070.00016.59
7.4.240.0040.00416.66
7.4.230.0040.00416.65
7.4.220.0060.01516.57
7.4.210.0120.00616.45
7.4.200.0070.00016.62
7.4.160.0060.00916.51
7.4.150.0110.00717.40
7.4.140.0090.01017.86
7.4.130.0120.01416.65
7.4.120.0120.00916.52
7.4.110.0110.00616.67
7.4.100.0060.01016.66
7.4.90.0110.00716.58
7.4.80.0090.01419.39
7.4.70.0120.00316.59
7.4.60.0070.01016.36
7.4.50.0070.01016.59
7.4.40.0030.01216.56
7.4.30.0030.01716.58
7.4.00.0040.01114.93
7.3.330.0030.00313.44
7.3.320.0000.00513.22
7.3.310.0000.00716.25
7.3.300.0070.00016.40
7.3.290.0110.00516.42
7.3.280.0070.00816.41
7.3.270.0060.01317.40
7.3.260.0050.01216.61
7.3.250.0120.01216.56
7.3.240.0090.00916.52
7.3.230.0110.01416.42
7.3.210.0030.01316.56
7.3.200.0100.00716.39
7.3.190.0140.00316.77
7.3.180.0170.00316.51
7.3.170.0120.00416.57
7.3.160.0060.01016.62
7.2.330.0120.00916.59
7.2.320.0100.00716.73
7.2.310.0100.00716.67
7.2.300.0070.01016.92
7.2.290.0070.01316.55
7.2.60.0030.00916.49
7.2.00.0070.00719.61
7.1.200.0030.01015.85
7.1.100.0030.00718.33
7.1.70.0070.00417.10
7.1.60.0100.01334.84
7.1.50.0070.01734.89
7.1.40.0100.01334.33
7.1.30.0130.01734.44
7.1.20.0170.00734.79
7.1.10.0030.00716.52
7.1.00.0000.01016.63
7.0.200.0070.00316.91
7.0.190.0070.00316.63
7.0.180.0030.00716.18
7.0.170.0070.00716.06
7.0.160.0030.00716.19
7.0.150.0000.01016.22
7.0.140.0070.00716.25
7.0.130.0000.01016.62
7.0.120.0000.01016.46
7.0.110.0000.01016.41
7.0.100.0030.00716.43
7.0.90.0070.00316.14
7.0.80.0000.01016.20
7.0.70.0000.01016.27
7.0.60.0000.01016.25
7.0.50.0000.01016.54
7.0.40.0030.00716.58
7.0.30.0000.01016.57
7.0.20.0030.00716.63
7.0.10.0000.01016.68
7.0.00.0030.00716.23

preferences:
51.52 ms | 400 KiB | 5 Q