3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ['name' => 'aalaap','age' => 29, 'location' => 'mumbai']; var_export( array_reduce( array_keys($array), fn($result, $k) => array_merge($result, [$k, $array[$k]]), [] ) );

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.70.0120.00616.89
8.5.60.0120.00616.97
8.5.50.0090.00816.71
8.5.30.0100.00817.70
8.5.20.0120.00420.27
8.5.10.0080.00216.86
8.5.00.0130.00719.78
8.4.180.0090.01320.68
8.4.170.0130.00823.68
8.4.160.0140.00625.67
8.4.150.0040.00316.83
8.4.140.0100.01017.58
8.4.130.0140.00618.95
8.4.120.0100.01024.00
8.4.110.0120.00820.74
8.4.100.0110.00918.74
8.4.90.0120.00720.47
8.4.80.0110.00818.58
8.4.70.0130.00718.89
8.4.60.0140.00720.46
8.4.50.0120.00820.29
8.4.40.0060.00617.63
8.4.30.0480.00317.58
8.4.20.0360.01317.27
8.4.10.0340.01117.57
8.3.300.0090.01120.76
8.3.290.0160.00420.80
8.3.280.0090.01218.51
8.3.270.0120.00816.52
8.3.260.0060.00416.57
8.3.250.0130.00518.88
8.3.240.0040.00517.22
8.3.230.0120.00716.41
8.3.220.0110.00419.04
8.3.210.0090.00016.54
8.3.200.0060.00316.74
8.3.190.0110.00617.12
8.3.180.0030.00520.80
8.3.170.0000.00816.96
8.3.160.0200.00016.04
8.3.150.0140.00716.66
8.3.140.0210.00016.71
8.3.130.0090.00916.65
8.3.120.0150.00616.22
8.3.110.0310.00316.42
8.3.100.0290.01816.75
8.3.90.0270.00716.30
8.3.80.0190.01516.23
8.3.70.0240.00616.77
8.3.60.0410.00416.34
8.3.50.0200.02016.37
8.3.40.0340.01117.28
8.3.30.0230.01317.39
8.3.20.0250.00617.45
8.3.10.0160.00017.45
8.3.00.0050.00517.24
8.2.300.0150.00818.09
8.2.290.0110.00520.45
8.2.280.0070.01018.22
8.2.270.0300.00916.64
8.2.260.0280.01216.59
8.2.250.0300.00916.19
8.2.240.0500.00716.39
8.2.230.0270.01216.18
8.2.220.0290.00916.43
8.2.210.0280.01116.53
8.2.200.0360.00316.38
8.2.190.0240.01616.39
8.2.180.0340.00416.48
8.2.170.0400.00317.66
8.2.160.0280.00817.52
8.2.150.0380.00417.63
8.2.140.0220.01917.48
8.2.130.0340.00617.45
8.2.120.0340.00717.52
8.2.110.0360.01017.71
8.2.100.0360.00817.61
8.2.90.0330.00517.41
8.2.80.0290.01017.48
8.2.70.0240.01017.57
8.2.60.0280.01117.49
8.2.50.0330.01017.32
8.2.40.0300.00817.52
8.2.30.0280.00817.54
8.2.20.0250.00717.71
8.2.10.0140.00817.58
8.2.00.0160.00017.46
8.1.340.0160.00417.71
8.1.320.0110.00618.11

preferences:
33.66 ms | 857 KiB | 5 Q