3v4l.org

run code in 500+ PHP versions simultaneously
<?php function generateArray(): array { return array_fill(0, 400000, 'test'); } $array = generateArray(); foreach($array as $key => $value) { $array[$key] = $value .'s'; } var_dump($array);

Abusive script

This script was stopped while abusing our resources

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.110.0320.01842.74
8.3.100.0290.01940.88
8.3.90.0230.01742.77
8.3.80.0320.01541.11
8.3.70.0370.03740.88
8.3.60.0690.02040.88
8.3.50.0670.03040.82
8.3.40.0400.03746.03
8.3.30.0560.02144.57
8.3.20.0350.01046.27
8.3.10.0240.01446.36
8.3.00.0310.01048.39
8.2.230.0240.01840.99
8.2.220.0150.02346.30
8.2.210.0210.02442.60
8.2.200.0230.01640.63
8.2.190.0600.02140.80
8.2.180.0320.04746.40
8.2.170.0520.02043.29
8.2.160.0460.04045.10
8.2.150.0310.00645.23
8.2.140.0220.01943.79
8.2.130.0210.01743.69
8.2.120.0190.01147.77
8.2.110.0270.03044.75
8.2.100.0460.02142.28
8.2.90.0160.01642.22
8.2.80.0220.01343.53
8.2.70.0310.02141.69
8.2.60.0290.01741.68
8.2.50.0280.02041.75
8.2.40.0220.02341.93
8.2.30.0290.02342.00
8.2.20.0200.02241.74
8.2.10.0240.02041.88
8.2.00.0240.02141.87
8.1.290.0390.01852.75
8.1.280.0600.02452.74
8.1.270.0060.00934.30
8.1.260.0000.01333.04
8.1.250.0090.00336.07
8.1.240.0070.00735.96
8.1.230.0170.00334.30
8.1.220.0070.00729.79
8.1.210.0090.00630.89
8.1.200.0140.00529.48
8.1.190.0150.00529.41
8.1.180.0210.00029.36
8.1.170.0190.00229.19
8.1.160.0140.00729.44
8.1.150.0140.00729.31
8.1.140.0130.00829.30
8.1.130.0180.00429.56
8.1.120.0210.00229.48
8.1.110.0170.00529.37
8.1.100.0180.00529.38
8.1.90.0160.00529.50
8.1.80.0180.00429.25
8.1.70.0140.00629.47
8.1.60.0140.00929.63
8.1.50.0080.01529.56
8.1.40.0130.01029.49
8.1.30.0150.00729.42
8.1.20.0190.00529.50
8.1.10.0320.02453.88
8.1.00.0350.02153.94
8.0.300.0230.01956.62
8.0.290.0310.02352.93
8.0.280.0260.02753.06
8.0.270.0330.02053.05
8.0.260.0280.02453.04
8.0.250.0310.02252.93
8.0.240.0260.02652.98
8.0.230.0350.01752.92
8.0.220.0310.02053.11
8.0.210.0310.02353.19
8.0.200.0330.02153.05
8.0.190.0240.02553.00
8.0.180.0340.01652.81
8.0.170.0300.02152.99
8.0.160.0270.02053.18
8.0.150.0320.02153.06
8.0.140.0290.02152.93
8.0.130.0340.01953.06
8.0.120.0300.02353.04
8.0.110.0310.02053.17
8.0.100.0360.01552.92
8.0.90.0300.02252.99
8.0.80.0270.02753.16
8.0.70.0300.02253.06
8.0.60.0300.02653.13
8.0.50.0290.02353.13
8.0.30.0340.02152.87
8.0.20.0250.02852.85
8.0.10.0300.01953.18

preferences:
78.78 ms | 3438 KiB | 5 Q