3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'My data'; function menugen($arg) { echo "[" . $arg . "]"; } menugen($data);

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.130.0140.00617.60
8.4.120.0100.01022.16
8.4.110.0090.00520.31
8.4.100.0130.00718.60
8.4.90.0060.00320.53
8.4.80.0050.00420.54
8.4.70.0140.00617.61
8.4.60.0130.00818.39
8.4.50.0090.00618.75
8.4.40.0090.00017.45
8.4.30.0100.01018.83
8.4.20.0190.00018.88
8.4.10.0050.00519.50
8.3.260.0140.00616.32
8.3.250.0140.00518.86
8.3.240.0100.00916.65
8.3.230.0090.01016.68
8.3.220.0040.00418.75
8.3.210.0080.01016.46
8.3.200.0090.01016.49
8.3.190.0060.00317.45
8.3.180.0110.00816.55
8.3.170.0120.00620.71
8.3.160.0060.00316.57
8.3.150.0190.00018.95
8.3.140.0060.00316.86
8.3.130.0000.00818.54
8.3.120.0100.01019.00
8.3.110.0090.00916.48
8.3.100.0060.00316.48
8.3.90.0070.01426.77
8.3.80.0030.00617.97
8.3.70.0070.00718.28
8.3.60.0090.00616.63
8.3.50.0140.00716.56
8.3.40.0040.01120.35
8.3.30.0070.00720.21
8.3.20.0040.00424.18
8.3.10.0100.01024.66
8.3.00.0110.00724.66
8.2.290.0140.00616.98
8.2.280.0100.00520.41
8.2.270.0070.01318.83
8.2.260.0090.00619.92
8.2.250.0090.00016.48
8.2.240.0030.00618.84
8.2.230.0090.00020.94
8.2.220.0040.00837.54
8.2.210.0030.00726.77
8.2.200.0070.00316.25
8.2.190.0110.00716.58
8.2.180.0160.00316.50
8.2.170.0110.00418.82
8.2.160.0130.00722.96
8.2.150.0000.00825.66
8.2.140.0090.00924.66
8.2.130.0090.00924.66
8.2.120.0110.00724.66
8.2.110.0110.00724.66
8.2.100.0100.00724.66
8.2.90.0120.00924.66
8.2.80.0080.00824.66
8.2.70.0090.00324.66
8.2.60.0040.00424.66
8.2.50.0080.00024.66
8.2.40.0110.00424.66
8.2.30.0060.00324.66
8.2.20.0000.00824.66
8.2.10.0040.00424.66
8.2.00.0070.01124.66
8.1.330.0130.00516.01
8.1.320.0120.00715.98
8.1.310.0000.01016.54
8.1.300.0050.00318.47
8.1.290.0040.00730.84
8.1.280.0000.01525.92
8.1.270.0070.01024.66
8.1.260.0080.00024.66
8.1.250.0000.00724.66
8.1.240.0040.00424.66
8.1.230.0080.00024.66
8.1.220.0030.00524.66
8.1.210.0150.00324.66
8.1.200.0030.00624.66
8.1.190.0040.00424.66
8.1.180.0080.00024.66
8.1.170.0110.00724.66
8.1.160.0060.00324.66
8.1.150.0160.00424.66
8.1.140.0030.00524.66
8.1.130.0080.00024.66
8.1.120.0060.00924.66
8.1.110.0040.00424.66
8.1.100.0080.00024.66
8.1.90.0090.00024.66
8.1.80.0070.00724.66
8.1.70.0080.00824.66
8.1.60.0100.00324.66
8.1.50.0040.00424.66
8.1.40.0040.00424.66
8.1.30.0000.00924.66
8.1.20.0030.00624.66
8.1.10.0090.00624.66
8.1.00.0000.00824.66

preferences:
30.96 ms | 403 KiB | 5 Q