3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = ["a", "b", "c"]; $result = str_split(str_repeat(implode($chars), 3)); var_export($result);

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.5.00.0110.01219.65
8.4.150.0020.00114.05
8.4.140.0130.00717.34
8.4.130.0110.01017.53
8.4.120.0090.01120.50
8.4.110.0110.00822.29
8.4.100.0080.00617.73
8.4.90.0100.01018.58
8.4.80.0150.00617.45
8.4.70.0040.00417.55
8.4.60.0060.00318.98
8.4.50.0140.00617.43
8.4.40.0130.00320.69
8.4.30.0160.00322.13
8.4.20.0130.00719.73
8.4.10.0160.00321.99
8.3.280.0120.01018.27
8.3.270.0050.00416.43
8.3.260.0140.00716.57
8.3.250.0060.00218.88
8.3.240.0120.00816.50
8.3.230.0070.00416.51
8.3.220.0110.00717.01
8.3.210.0040.00418.60
8.3.200.0040.00516.37
8.3.190.0090.00917.00
8.3.180.0050.00616.47
8.3.170.0100.00718.61
8.3.160.0120.00616.48
8.3.150.0100.01018.76
8.3.140.0090.00616.73
8.3.130.0060.00318.41
8.3.120.0080.01120.70
8.3.110.0130.00716.74
8.3.100.0060.00324.06
8.3.90.0110.00426.77
8.3.80.0060.00318.31
8.3.70.0130.00318.43
8.3.60.0040.01116.50
8.3.50.0040.01116.32
8.3.40.0120.00320.29
8.3.30.0000.01518.44
8.3.20.0040.00424.18
8.3.10.0070.00024.66
8.3.00.0040.00426.16
8.2.290.0100.00920.53
8.2.280.0050.00218.34
8.2.270.0110.00717.30
8.2.260.0070.00718.11
8.2.250.0080.00016.51
8.2.240.0030.00618.71
8.2.230.0060.00320.94
8.2.220.0100.01037.54
8.2.210.0040.00426.77
8.2.200.0090.00016.63
8.2.190.0130.00316.58
8.2.180.0090.00618.29
8.2.170.0070.01318.96
8.2.160.0120.00622.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0030.00519.54
8.2.110.0060.00321.07
8.2.100.0120.00017.78
8.2.90.0030.00617.66
8.2.80.0050.00319.70
8.2.70.0040.00417.38
8.2.60.0150.00417.25
8.2.50.0180.00017.50
8.2.40.0110.00517.38
8.2.30.0100.00617.48
8.2.20.0080.00817.13
8.2.10.0150.00217.13
8.2.00.0110.00817.25
8.1.330.0090.00723.80
8.1.320.0070.00815.93
8.1.310.0100.00318.38
8.1.300.0060.00318.09
8.1.290.0050.00530.84
8.1.280.0130.00725.92
8.1.270.0070.00424.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.52
8.1.230.0120.00020.82
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0030.00617.22
8.1.190.0160.00017.13
8.1.180.0130.00317.00
8.1.170.0130.00317.25
8.1.160.0160.00017.00
8.1.150.0090.00916.88
8.1.140.0070.01017.25
8.1.130.0150.00317.13
8.1.120.0120.00617.13
8.1.110.0160.00017.00
8.1.100.0120.00517.00
8.1.90.0090.00617.25
8.1.80.0160.00017.25
8.1.70.0160.00017.11
8.1.60.0140.00517.13
8.1.50.0180.00017.34
8.1.40.0130.00917.00
8.1.30.0140.00317.38
8.1.20.0000.01717.48
8.1.10.0140.00417.13
8.1.00.0140.00317.00
8.0.300.0030.00619.90
8.0.290.0000.00816.58
8.0.280.0080.00816.52
8.0.270.0120.00616.52
8.0.260.0080.00816.61
8.0.250.0170.00016.52
8.0.240.0120.00416.61
8.0.230.0110.00516.75
8.0.220.0120.00516.52
8.0.210.0120.00416.52
8.0.200.0100.00616.88
8.0.190.0210.00016.63
8.0.180.0110.00616.61
8.0.170.0110.00616.63
8.0.160.0090.00616.52
8.0.150.0120.00616.52
8.0.140.0140.00316.52
8.0.130.0140.00216.63
8.0.120.0110.00616.52
8.0.110.0130.00416.52
8.0.100.0110.00416.52
8.0.90.0110.00516.52
8.0.80.0090.00916.52
8.0.70.0070.01016.52
8.0.60.0200.00016.52
8.0.50.0120.00616.52
8.0.30.0200.00016.52
8.0.20.0130.00416.52
8.0.10.0090.00616.63

preferences:
29.79 ms | 403 KiB | 5 Q