3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = ["a", "b", "c"]; var_export( array_reduce( $chars, fn($result, $v) => array_merge($result, array_fill(0, 3, $v)), [] ) );

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.76
8.4.150.0030.00014.05
8.4.140.0130.01017.39
8.4.130.0100.00917.76
8.4.120.0090.01124.09
8.4.110.0130.01022.50
8.4.100.0110.00917.63
8.4.90.0110.01018.51
8.4.80.0040.00517.58
8.4.70.0050.01117.60
8.4.60.0070.01018.71
8.4.50.0150.00619.09
8.4.40.0060.01320.58
8.4.30.0030.00522.11
8.4.20.0030.00618.01
8.4.10.0090.00922.02
8.3.280.0110.01018.31
8.3.270.0100.01016.82
8.3.260.0110.00817.18
8.3.250.0110.00818.96
8.3.240.0100.00917.01
8.3.230.0130.00616.51
8.3.220.0100.00917.01
8.3.210.0050.00416.74
8.3.200.0060.00316.75
8.3.190.0090.00617.02
8.3.180.0090.00618.22
8.3.170.0120.00618.95
8.3.160.0090.00916.39
8.3.150.0040.01419.10
8.3.140.0090.00916.80
8.3.130.0130.00318.45
8.3.120.0000.00920.60
8.3.110.0090.00016.63
8.3.100.0000.00916.73
8.3.90.0110.00726.77
8.3.80.0070.00318.30
8.3.70.0180.00416.59
8.3.60.0070.00716.63
8.3.50.0140.00016.58
8.3.40.0110.00320.37
8.3.30.0060.01018.59
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0080.01220.47
8.2.280.0090.00720.05
8.2.270.0040.01516.84
8.2.260.0090.00920.77
8.2.250.0030.00616.79
8.2.240.0090.00016.99
8.2.230.0040.00420.94
8.2.220.0090.00624.06
8.2.210.0150.00426.77
8.2.200.0060.00616.38
8.2.190.0070.01416.58
8.2.180.0070.00725.92
8.2.170.0000.01518.79
8.2.160.0140.00722.96
8.2.150.0060.00325.66
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0070.00019.77
8.2.110.0030.00620.40
8.2.100.0110.00017.72
8.2.90.0030.00618.03
8.2.80.0000.00819.95
8.2.70.0030.00617.63
8.2.60.0120.00617.00
8.2.50.0050.01417.13
8.2.40.0140.00317.25
8.2.30.0080.00817.38
8.2.20.0110.00617.63
8.2.10.0170.00017.25
8.2.00.0160.00017.25
8.1.330.0130.00622.07
8.1.320.0100.00916.01
8.1.310.0110.00416.76
8.1.300.0130.00715.92
8.1.290.0040.00430.84
8.1.280.0110.00325.92
8.1.270.0080.00024.66
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00322.17
8.1.230.0040.00722.07
8.1.220.0040.00417.74
8.1.210.0050.00318.87
8.1.200.0030.00617.48
8.1.190.0160.00017.11
8.1.180.0140.00317.00
8.1.170.0160.00016.88
8.1.160.0060.01117.11
8.1.150.0000.01617.13
8.1.140.0070.00917.25
8.1.130.0130.00317.13
8.1.120.0100.00717.00
8.1.110.0140.00317.10
8.1.100.0110.00617.13
8.1.90.0110.00417.25
8.1.80.0070.00917.35
8.1.70.0050.01117.00
8.1.60.0140.00517.25
8.1.50.0170.00017.38
8.1.40.0150.00317.50
8.1.30.0240.00017.23
8.1.20.0060.01117.36
8.1.10.0120.00617.13
8.1.00.0130.00617.10
8.0.300.0070.00019.74
8.0.290.0070.00016.63
8.0.280.0170.00016.52
8.0.270.0140.00316.52
8.0.260.0110.00516.52
8.0.250.0120.00416.75
8.0.240.0080.01116.52
8.0.230.0130.00416.52
8.0.220.0090.00716.52
8.0.210.0140.00316.52
8.0.200.0110.00516.75
8.0.190.0050.01016.74
8.0.180.0100.00716.63
8.0.170.0100.00716.61
8.0.160.0120.00416.52
8.0.150.0130.00416.52
8.0.140.0090.00916.74
8.0.130.0110.00616.75
8.0.120.0120.00616.52
8.0.110.0160.00016.52
8.0.100.0160.00016.52
8.0.90.0110.00716.52
8.0.80.0040.01216.63
8.0.70.0110.00616.63
8.0.60.0080.00816.75
8.0.50.0110.00616.60
8.0.30.0090.00916.61
8.0.20.0110.00516.52
8.0.10.0100.00516.75

preferences:
123.02 ms | 403 KiB | 5 Q