3v4l.org

run code in 300+ PHP versions simultaneously
<?php function run(int $max) { for ($i=1; $i<5; $i++) { unset($y, $z); yield ($y = $i*3) => $y; yield $z => ($z = $i*3); } } foreach(run(10) as $key => $value) { echo $key, ' => ', $value, PHP_EOL; }

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.4.140.0150.00617.27
8.4.130.0130.00817.89
8.4.120.0130.00722.09
8.4.110.0100.01122.50
8.4.100.0100.01017.59
8.4.90.0120.00818.77
8.4.80.0030.00517.54
8.4.70.0130.00817.62
8.4.60.0130.00718.70
8.4.50.0110.00819.37
8.4.40.0080.01217.47
8.4.30.0110.00720.64
8.4.20.0160.00317.46
8.4.10.0140.00721.96
8.3.270.0130.00616.65
8.3.260.0140.00616.42
8.3.250.0070.01018.84
8.3.240.0100.01016.32
8.3.230.0130.00616.60
8.3.220.0030.00517.10
8.3.210.0130.00616.69
8.3.200.0030.00516.56
8.3.190.0080.00617.35
8.3.180.0040.00616.57
8.3.170.0110.00718.75
8.3.160.0090.01016.71
8.3.150.0060.01318.64
8.3.140.0080.00020.62
8.3.130.0030.00618.50
8.3.120.0030.00620.97
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0070.01126.77
8.3.80.0060.00318.56
8.3.70.0150.00018.56
8.3.60.0150.00420.29
8.3.50.0090.00616.63
8.3.40.0110.00420.24
8.3.30.0140.00020.46
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0130.00620.20
8.2.280.0050.00518.43
8.2.270.0130.00716.89
8.2.260.0140.00318.66
8.2.250.0040.00418.50
8.2.240.0030.00717.20
8.2.230.0090.00622.58
8.2.220.0170.00737.54
8.2.210.0180.00026.77
8.2.200.0000.01016.63
8.2.190.0160.00316.58
8.2.180.0120.00616.38
8.2.170.0070.00718.80
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00819.25
8.2.110.0030.00619.25
8.2.100.0060.00617.91
8.2.90.0040.00417.97
8.2.80.0050.00319.02
8.2.70.0100.01079.33
8.2.60.0100.00979.33
8.2.50.0080.01179.33
8.2.40.0100.00779.33
8.2.30.0130.00379.33
8.2.20.0170.00079.33
8.2.10.0180.00079.33
8.2.00.0190.00079.33
8.1.330.0110.00722.05
8.1.320.0110.00916.28
8.1.310.0060.00916.52
8.1.300.0060.00317.80
8.1.290.0080.00430.84
8.1.280.0100.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0070.00420.88
8.1.220.0030.00617.79
8.1.210.0000.00818.79
8.1.200.0040.00479.33
8.1.190.0100.00779.33
8.1.180.0140.00379.33
8.1.170.0120.00679.33
8.1.160.0100.00679.33
8.1.150.0070.01079.33
8.1.140.0040.01379.33
8.1.130.0190.00079.33
8.1.120.0110.00579.33
8.1.110.0130.00779.33
8.1.100.0130.00679.33
8.1.90.0070.01179.33
8.1.80.0090.00979.33
8.1.70.0140.00479.33
8.1.60.0120.00679.33
8.1.50.0170.00079.33
8.1.40.0030.00679.33
8.1.30.0130.00579.33
8.1.20.0140.00579.33
8.1.10.0110.00879.33
8.1.00.0140.00579.33
8.0.300.0080.00020.09
8.0.290.0090.00979.33
8.0.280.0160.00079.33
8.0.270.0110.00579.33
8.0.260.0160.00079.33
8.0.250.0120.00479.33
8.0.240.0100.00779.33
8.0.230.0130.00479.33
8.0.220.0150.00379.33
8.0.210.0040.01379.33
8.0.200.0130.00479.33
8.0.190.0150.00479.33
8.0.180.0130.00379.33
8.0.170.0060.01079.33
8.0.160.0170.00079.33
8.0.150.0160.00079.33
8.0.140.0110.00779.33
8.0.130.0130.00379.33
8.0.120.0160.00379.33
8.0.110.0080.00879.33
8.0.100.0200.00079.33
8.0.90.0140.00279.33
8.0.80.0120.00879.33
8.0.70.0150.00479.33
8.0.60.0050.01479.33
8.0.50.0150.00479.33
8.0.30.0110.00779.33
8.0.20.0090.00979.33
8.0.10.0140.00379.33

preferences:
30.47 ms | 403 KiB | 5 Q