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; } return 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.60.0070.01418.32
8.3.50.0120.00316.44
8.3.40.0110.00418.94
8.3.30.0090.00618.77
8.3.20.0000.00818.84
8.3.10.0080.00021.77
8.3.00.0000.00820.90
8.2.180.0110.01118.16
8.2.170.0100.01022.96
8.2.160.0030.01322.31
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0080.00022.08
8.2.120.0060.00326.35
8.2.110.0070.00420.52
8.2.100.0040.00817.97
8.2.90.0040.00419.36
8.2.80.0000.00918.05
8.2.70.0030.00617.75
8.2.60.0000.00918.03
8.2.50.0030.00618.10
8.2.40.0040.00420.59
8.2.30.0040.00421.14
8.2.20.0050.00218.14
8.2.10.0000.00718.20
8.2.00.0040.00418.05
8.1.280.0100.01025.92
8.1.270.0000.00822.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.68
8.1.230.0080.00418.80
8.1.220.0070.00317.74
8.1.210.0000.00918.77
8.1.200.0000.01017.36
8.1.190.0050.00317.35
8.1.180.0020.00518.10
8.1.170.0040.00418.40
8.1.160.0000.00719.04
8.1.150.0040.00420.65
8.1.140.0090.00019.55
8.1.130.0000.00718.87
8.1.120.0050.00317.48
8.1.110.0040.00417.44
8.1.100.0070.00017.51
8.1.90.0050.00317.51
8.1.80.0070.00017.53
8.1.70.0030.00317.41
8.1.60.0080.00017.58
8.1.50.0050.00317.43
8.1.40.0050.00317.41
8.1.30.0020.00517.67
8.1.20.0040.00417.63
8.1.10.0080.00017.66
8.1.00.0030.00517.50
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0050.00318.37
8.0.270.0070.00017.20
8.0.260.0070.00016.77
8.0.250.0000.00616.95
8.0.240.0050.00316.97
8.0.230.0080.00016.87
8.0.220.0030.00316.91
8.0.210.0040.00416.88
8.0.200.0000.00616.94
8.0.190.0050.00317.03
8.0.180.0030.00716.94
8.0.170.0070.00016.84
8.0.160.0000.00717.02
8.0.150.0040.00416.86
8.0.140.0000.00716.79
8.0.130.0000.00513.27
8.0.120.0040.00416.86
8.0.110.0040.00416.70
8.0.100.0000.00816.86
8.0.90.0000.00816.76
8.0.80.0000.01416.88
8.0.70.0000.00816.86
8.0.60.0040.00416.80
8.0.50.0030.00516.69
8.0.30.0100.00717.06
8.0.20.0100.01017.40
8.0.10.0040.00417.04
8.0.00.0100.00716.98
7.4.330.0050.00015.55
7.4.320.0060.00016.62
7.4.300.0000.00616.61
7.4.290.0030.00316.57
7.4.280.0060.00316.42
7.4.270.0030.00316.54
7.4.260.0000.00613.33
7.4.250.0000.00716.63
7.4.240.0070.00016.63
7.4.230.0030.00316.41
7.4.220.0070.01016.45
7.4.210.0060.00916.61
7.4.200.0030.00316.60
7.4.160.0070.01016.42
7.4.150.0090.01317.40
7.4.140.0100.00717.86
7.4.130.0120.01316.57
7.4.120.0090.01016.46
7.4.110.0060.01616.64
7.4.100.0120.00616.54
7.4.90.0030.01416.66
7.4.80.0120.00619.39
7.4.70.0120.00616.69
7.4.60.0060.00916.57
7.4.50.0070.00716.66
7.4.40.0090.00616.52
7.4.30.0060.01116.57
7.4.00.0030.01015.11
7.3.330.0020.00213.23
7.3.320.0000.00513.33
7.3.310.0040.00416.40
7.3.300.0070.00016.32
7.3.290.0030.01216.36
7.3.280.0080.00716.32
7.3.270.0060.01317.40
7.3.260.0120.01016.47
7.3.250.0100.01316.42
7.3.240.0120.00816.38
7.3.230.0140.01116.68
7.3.210.0060.01016.57
7.3.200.0130.00316.45
7.3.190.0060.01616.48
7.3.180.0070.01016.43
7.3.170.0060.01016.69
7.3.160.0060.01016.39
7.2.330.0060.01616.93
7.2.320.0060.01616.82
7.2.310.0170.00016.47
7.2.300.0170.00316.69
7.2.290.0100.01016.70
7.2.60.0120.00417.09
7.2.00.0060.00819.57
7.1.200.0040.00815.62
7.1.100.0060.01018.31
7.1.70.0060.00617.28
7.1.60.0630.01733.38
7.1.50.0130.01033.02
7.1.40.0570.01332.65
7.1.30.0130.01332.90
7.1.20.0570.01732.92
7.1.10.0530.01314.60
7.1.00.0600.01014.83
7.0.200.0000.01015.07
7.0.190.0200.01014.90
7.0.180.0000.01014.30
7.0.170.0600.00314.45
7.0.160.0530.00314.68
7.0.150.0600.00714.56
7.0.140.0570.01014.50
7.0.130.0600.00714.98
7.0.120.0630.00714.58
7.0.110.0000.01014.59
7.0.100.0030.00714.69
7.0.90.0570.00714.78
7.0.80.1070.00714.44
7.0.70.0500.01314.64
7.0.60.0030.00714.49
7.0.50.0570.00714.54
7.0.40.0430.01714.68
7.0.30.0630.01014.68
7.0.20.0800.01314.64
7.0.10.0070.00314.71
7.0.00.0170.00714.62

preferences:
79.67 ms | 400 KiB | 5 Q