3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Foo', 'bAr' => 'BaR', /*'suB' => [ 'a' => 1, 2 => 'b', 'C' => null, ], 'obj' => (object) [ 'd' => 1.333, 'SubArR' => [ 'This' => 'Is', 'a' => 'challenge', ] ]*/ ]; var_export( array_map(strtolower(...), $array) );

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.130.0090.01019.01
8.4.120.0100.00923.83
8.4.110.0100.00918.70
8.4.100.0060.00317.77
8.4.90.0100.01218.49
8.4.80.0150.00617.50
8.4.70.0120.00817.87
8.4.60.0070.00518.56
8.4.50.0120.00920.36
8.4.40.0070.01417.45
8.4.30.0160.00318.83
8.4.20.0100.00021.39
8.4.10.0040.00419.25
8.3.260.0070.00416.63
8.3.250.0100.00918.97
8.3.240.0120.00717.23
8.3.230.0060.01116.48
8.3.220.0030.00517.36
8.3.210.0090.00716.46
8.3.200.0050.00416.49
8.3.190.0050.00517.22
8.3.180.0100.00817.07
8.3.170.0100.00718.55
8.3.160.0130.00718.45
8.3.150.0160.00317.00
8.3.140.0070.01120.43
8.3.130.0090.01218.27
8.3.120.0110.00720.71
8.3.110.0090.00916.57
8.3.100.0060.00316.41
8.3.80.0310.00730.84
8.3.70.0310.00730.84
8.3.60.0250.00430.84
8.3.50.0090.00430.84
8.3.40.0180.00530.84
8.3.30.0230.00830.84
8.3.20.0220.00730.84
8.3.10.0160.00830.84
8.3.00.0190.00530.84
8.2.290.0090.01020.37
8.2.280.0140.00518.10
8.2.270.0070.01417.13
8.2.260.0060.00316.37
8.2.250.0070.00718.36
8.2.240.0070.00417.21
8.2.230.0060.00316.34
8.2.220.0080.00818.21
8.2.200.0210.00830.84
8.2.190.0180.00730.84
8.2.180.0180.00630.84
8.2.170.0220.00330.84
8.2.160.0230.00430.84
8.2.150.0200.00630.84
8.2.140.0200.00430.84
8.2.130.0230.00430.84
8.2.120.0230.00830.84
8.2.110.0300.00430.84
8.2.100.0260.00730.84
8.2.90.0250.00430.84
8.2.80.0210.00730.84
8.2.70.0240.00730.84
8.2.60.0200.00530.84
8.2.50.0240.00530.84
8.2.40.0200.00530.84
8.2.30.0230.00430.84
8.2.20.0260.00630.84
8.2.10.0250.00730.84
8.2.00.0270.00530.84
8.1.330.0140.00522.00
8.1.320.0100.00817.59
8.1.310.0040.00416.84
8.1.300.0120.00920.02
8.1.290.0290.00730.84
8.1.280.0280.00830.84
8.1.270.0270.01130.84
8.1.260.0260.00830.84
8.1.250.0280.00530.84
8.1.240.0210.00530.84
8.1.230.0260.00530.84
8.1.220.0230.00630.84
8.1.210.0250.00530.84
8.1.200.0200.00530.84
8.1.190.0200.00630.84
8.1.180.0250.00330.84
8.1.170.0190.00630.84
8.1.160.0170.00530.84
8.1.150.0210.00330.84
8.1.140.0210.00630.84
8.1.130.0220.00630.84
8.1.120.0200.00830.84
8.1.110.0200.00730.84
8.1.100.0220.00630.84
8.1.90.0210.00730.84
8.1.80.0250.00430.84
8.1.70.0250.00430.84
8.1.60.0240.00330.84
8.1.50.0240.00530.84
8.1.40.0250.00630.84
8.1.30.0200.00830.84
8.1.20.0160.00930.84
8.1.10.0230.00230.84
8.1.00.0230.00630.84

preferences:
26.96 ms | 403 KiB | 5 Q