3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = []; for ($i = 0; $i < 100000; $i++) { $list[] = $i; } var_dump(memory_get_peak_usage() / 1024 / 1024);

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.20.0090.01127.87
8.4.10.0090.01525.07
8.3.150.0030.00622.86
8.3.140.0160.00619.59
8.3.130.0060.00320.53
8.3.120.0100.01321.67
8.3.110.0090.00920.94
8.3.100.0170.00724.06
8.3.90.0090.00026.77
8.3.80.0060.00619.13
8.3.70.0100.01318.86
8.3.60.0090.01219.00
8.3.50.0160.01018.92
8.3.40.0180.00722.70
8.3.30.0090.01321.40
8.3.20.0090.00024.40
8.3.10.0070.00424.66
8.3.00.0060.00326.16
8.2.260.0070.00321.59
8.2.250.0140.00720.47
8.2.240.0070.00419.78
8.2.230.0070.00322.58
8.2.220.0090.00337.54
8.2.210.0060.00326.77
8.2.200.0070.00418.88
8.2.190.0030.01320.12
8.2.180.0110.01118.88
8.2.170.0140.00422.96
8.2.160.0090.00623.84
8.2.150.0030.00625.66
8.2.140.0040.00724.66
8.2.130.0030.00726.16
8.2.120.0120.00021.39
8.2.110.0100.01224.25
8.2.100.0050.01321.82
8.2.90.0240.00621.35
8.2.80.0190.00520.89
8.2.70.0200.00420.89
8.2.60.0170.00721.17
8.2.50.0170.00521.04
8.2.40.0170.00721.18
8.2.30.0150.01021.04
8.2.20.0130.00520.99
8.2.10.0110.00620.34
8.2.00.0120.00620.53
8.1.310.0150.00621.43
8.1.300.0120.00622.81
8.1.290.0070.00423.90
8.1.280.0090.01225.92
8.1.270.0080.00426.97
8.1.260.0150.00330.06
8.1.250.0030.00628.09
8.1.240.0110.00524.28
8.1.230.0160.00223.09
8.1.220.0220.00623.19
8.1.210.0180.00723.39
8.1.200.0230.00623.05
8.1.190.0180.00923.29
8.1.180.0180.00622.77
8.1.170.0150.00923.08
8.1.160.0170.00624.00
8.1.150.0140.00623.35
8.1.140.0120.00622.67
8.1.130.0110.00722.53
8.1.120.0110.00822.64
8.1.110.0120.00722.73
8.1.100.0110.00722.60
8.1.90.0120.00622.65
8.1.80.0110.00722.67
8.1.70.0120.00722.64
8.1.60.0120.00822.72
8.1.50.0130.00722.70
8.1.40.0150.00622.79
8.1.30.0140.00622.81
8.1.20.0140.00622.76
8.1.10.0130.00622.65
8.1.00.0130.00622.59
8.0.300.0220.00222.72
8.0.290.0180.00622.39
8.0.280.0170.00622.77
8.0.270.0110.00621.83
8.0.260.0120.00521.99
8.0.250.0100.00821.95
8.0.240.0120.00521.99
8.0.230.0120.00621.97
8.0.220.0120.00521.90
8.0.210.0110.00621.86
8.0.200.0130.00621.89
8.0.190.0120.00621.98
8.0.180.0110.00721.88
8.0.170.0120.00621.97
8.0.160.0120.00721.93
8.0.150.0130.00521.85
8.0.140.0130.00521.84
8.0.130.0120.00521.97
8.0.120.0110.00721.91
8.0.110.0120.00521.94
8.0.100.0120.00621.87
8.0.90.0140.00521.97
8.0.80.0130.00521.90
8.0.70.0120.00621.96
8.0.60.0100.00721.94
8.0.50.0120.00521.83
8.0.30.0130.00521.94
8.0.20.0120.00521.92
8.0.10.0120.00622.01

preferences:
33.37 ms | 403 KiB | 5 Q