3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new class() { public $callCounters = []; public function call($index) { if (!isset($this->callCounters[$index])) { $this->callCounters[$index] = 0; } ++$this->callCounters[$index]; } }; $indexes = range('a','e'); foreach($indexes as $index) { for($i = 0; $i <= 2; ++$i) { $x->call($index); } } var_dump($x->callCounters);

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.0110.00818.43
8.3.50.0090.00916.63
8.3.40.0070.00718.65
8.3.30.0150.00018.85
8.3.20.0050.00319.03
8.3.10.0080.00021.78
8.3.00.0090.00019.35
8.2.180.0140.00716.36
8.2.170.0140.00022.96
8.2.160.0100.00320.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00822.33
8.2.120.0070.00026.35
8.2.110.0000.01020.40
8.2.100.0040.00817.91
8.2.90.0000.00819.21
8.2.80.0040.00418.05
8.2.70.0060.00317.63
8.2.60.0040.00418.05
8.2.50.0050.00318.16
8.2.40.0080.00022.26
8.2.30.0080.00021.12
8.2.20.0040.00418.12
8.2.10.0000.00718.08
8.2.00.0040.00418.11
8.1.280.0140.00725.92
8.1.270.0030.00522.06
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0030.00622.09
8.1.230.0120.00019.29
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00617.36
8.1.190.0050.00317.35
8.1.180.0000.00718.10
8.1.170.0060.00318.66
8.1.160.0020.00519.01
8.1.150.0080.00020.63
8.1.140.0040.00419.52
8.1.130.0070.00018.94
8.1.120.0000.00717.50
8.1.110.0000.00717.45
8.1.100.0040.00417.34
8.1.90.0080.00017.46
8.1.80.0050.00217.52
8.1.70.0050.00317.36
8.1.60.0050.00317.63
8.1.50.0040.00417.57
8.1.40.0030.00617.52
8.1.30.0040.00417.55
8.1.20.0040.00417.61
8.1.10.0060.00617.55
8.1.00.0040.00417.55
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0030.00317.25
8.0.260.0000.00716.82
8.0.250.0030.00316.98
8.0.240.0040.00416.93
8.0.230.0040.00416.96
8.0.220.0000.00716.87
8.0.210.0000.00716.92
8.0.200.0080.00316.63
8.0.190.0030.00516.88
8.0.180.0000.00816.90
8.0.170.0070.00016.81
8.0.160.0080.00016.91
8.0.150.0070.00016.71
8.0.140.0040.00416.89
8.0.130.0050.00213.28
8.0.120.0040.00416.87
8.0.110.0020.00516.85
8.0.100.0050.00316.70
8.0.90.0080.00016.79
8.0.80.0060.00916.92
8.0.70.0030.00616.67
8.0.60.0070.00016.81
8.0.50.0080.00016.78
8.0.30.0110.00517.00
8.0.20.0110.00817.40
8.0.10.0000.00716.90
8.0.00.0090.00916.66
7.4.330.0030.00315.55
7.4.320.0000.00716.51
7.4.300.0030.00316.57
7.4.290.0000.00816.50
7.4.280.0040.00416.60
7.4.270.0000.00716.45
7.4.260.0040.00416.61
7.4.250.0050.00216.46
7.4.240.0040.00416.64
7.4.230.0030.00316.44
7.4.220.0160.00616.64
7.4.210.0060.00916.51
7.4.200.0030.00316.51
7.4.160.0090.00716.55
7.4.150.0000.01817.40
7.4.140.0090.00917.86
7.4.130.0000.01716.55
7.4.120.0140.00516.56
7.4.110.0090.00916.50
7.4.100.0080.00816.48
7.4.90.0070.01116.53
7.4.80.0100.00719.39
7.4.70.0150.00616.54
7.4.60.0060.00916.59
7.4.50.0070.01016.37
7.4.40.0080.00816.48
7.4.30.0100.00616.63
7.4.00.0100.00314.57
7.3.330.0060.00013.37
7.3.320.0000.00513.31
7.3.310.0000.00716.42
7.3.300.0070.00016.41
7.3.290.0030.00316.38
7.3.280.0090.00716.34
7.3.270.0030.01417.40
7.3.260.0140.01016.55
7.3.250.0090.01116.46
7.3.240.0070.01116.61
7.3.230.0060.01516.36
7.3.210.0070.01016.43
7.3.200.0190.00016.50
7.3.190.0080.00716.57
7.3.180.0040.01816.52
7.3.170.0110.00616.69
7.3.160.0040.01216.54
7.2.330.0030.01916.70
7.2.320.0130.00316.68
7.2.310.0080.00816.81
7.2.300.0080.00816.48
7.2.290.0090.00616.89
7.2.60.0040.00816.67
7.2.00.0040.01119.55
7.1.200.0060.00615.53
7.1.100.0000.01118.16
7.1.70.0000.00717.33
7.1.60.1900.01733.43
7.1.50.0830.01333.08
7.1.40.0370.00732.67
7.1.30.0330.01332.57
7.1.20.2430.00732.69
7.1.10.0030.01314.72
7.1.00.0130.01714.87
7.0.200.2670.01014.84
7.0.190.2930.01014.84
7.0.180.0100.01314.66
7.0.170.2500.01314.54
7.0.160.2070.01314.50
7.0.150.0070.01314.39
7.0.140.2370.00714.71
7.0.130.0370.01014.68
7.0.120.0130.02014.74
7.0.110.1900.01314.63
7.0.100.0130.00314.43
7.0.90.0070.02314.57
7.0.80.2370.01314.52
7.0.70.1900.01714.55
7.0.60.2100.01014.39
7.0.50.1800.01014.59
7.0.40.2300.01714.77
7.0.30.2100.01314.74
7.0.20.1970.02314.76
7.0.10.0400.02014.53
7.0.00.0070.01314.59

preferences:
47.49 ms | 400 KiB | 5 Q