3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sfunc($a, ...$funcs){ echo '<details> <summary>'. $a . '</summary>' . PHP_EOL; foreach ($funcs as $func) $func(); unset($func); echo '</details>' . PHP_EOL; } $fun = function (){ echo "123"; }; $summary = "test"; sfunc($summary, $fun);

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.120.0110.00824.24
8.4.110.0030.00617.76
8.4.100.0140.00518.84
8.4.90.0050.00618.98
8.4.80.0090.00418.82
8.4.70.0070.00918.18
8.4.60.0060.00218.98
8.4.50.0100.01018.75
8.4.40.0100.01017.59
8.4.30.0080.00819.06
8.4.20.0070.01317.91
8.4.10.0050.00319.57
8.3.250.0150.00518.95
8.3.240.0130.00717.06
8.3.230.0120.00716.58
8.3.220.0120.00718.79
8.3.210.0080.00716.48
8.3.200.0070.00416.48
8.3.190.0150.00417.35
8.3.180.0100.00917.04
8.3.170.0110.00420.94
8.3.160.0110.00717.23
8.3.150.0120.00617.08
8.3.140.0070.01116.65
8.3.130.0100.00718.41
8.3.120.0080.00020.65
8.3.110.0050.00520.94
8.3.100.0040.01124.06
8.3.90.0040.00426.77
8.3.80.0090.00018.30
8.3.70.0070.01516.50
8.3.60.0090.00618.38
8.3.50.0130.00316.72
8.3.40.0000.01423.61
8.3.30.0060.01220.20
8.3.20.0030.01524.18
8.3.10.0170.00321.73
8.3.00.0070.01118.93
8.2.290.0130.00620.41
8.2.280.0120.00618.29
8.2.270.0120.00618.75
8.2.260.0090.00016.77
8.2.250.0030.00616.88
8.2.240.0030.00616.87
8.2.230.0080.00022.58
8.2.220.0060.00637.54
8.2.210.0030.00526.77
8.2.200.0030.00616.38
8.2.190.0070.00718.16
8.2.180.0070.00716.49
8.2.170.0070.01422.96
8.2.160.0070.01422.96
8.2.150.0060.00324.18
8.2.140.0090.00920.52
8.2.130.0100.00720.52
8.2.120.0120.00818.88
8.2.110.0040.01419.01
8.2.100.0100.00718.97
8.2.90.0060.01019.00
8.2.80.0040.01119.14
8.2.70.0060.00618.75
8.2.60.0060.01218.82
8.2.50.0070.01118.68
8.2.40.0110.00718.87
8.2.30.0050.00318.70
8.2.20.0100.00718.70
8.2.10.0080.00018.65
8.2.00.0090.00618.70
8.1.330.0120.00621.91
8.1.320.0130.00918.47
8.1.310.0070.00717.61
8.1.300.0050.00318.56
8.1.290.0090.00330.84
8.1.280.0130.01325.92
8.1.270.0030.00622.14
8.1.260.0040.00422.01
8.1.250.0070.00721.98
8.1.240.0070.00718.39
8.1.230.0070.00718.50
8.1.220.0000.00918.85
8.1.210.0040.00418.55
8.1.200.0080.00018.75
8.1.190.0070.00018.69
8.1.180.0050.00318.28
8.1.170.0050.00318.61
8.1.160.0030.00518.42
8.1.150.0030.00718.56
8.1.140.0080.00018.62
8.1.130.0080.00018.93
8.1.120.0050.00318.63
8.1.110.0080.00818.54
8.1.100.0080.00018.55
8.1.90.0160.00018.55
8.1.80.0060.00318.30
8.1.70.0150.00018.54
8.1.60.0060.00318.67
8.1.50.0030.00618.67
8.1.40.0060.00318.63
8.1.30.0060.00318.79
8.1.20.0050.00318.77
8.1.10.0080.00018.43
8.1.00.0080.00018.53
7.4.330.0050.00425.66

preferences:
27.47 ms | 403 KiB | 5 Q