3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'foo' => 'one', 'bar' => [ 'boo' => 'two', 'foo' => 'three', 'loo' => [ 'foo' => 'four', ], ], 'goo' => [ 'foo' => 'five', ] ]; var_export( array_walk_recursive( $array, function($value, $key, $matchingKey){ return (strcasecmp($key, $matchingKey) == 0)? true : false; }, 'fighters' //'foo' ) );

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.60.0110.01116.63
8.3.50.0120.00616.46
8.3.40.0110.00420.17
8.3.30.0120.00618.59
8.3.20.0070.00024.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.180.0110.01116.63
8.2.170.0140.00318.97
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00321.10
8.2.110.0020.00920.72
8.2.100.0130.00818.64
8.2.90.0100.00418.25
8.2.80.0120.01018.75
8.2.70.0120.00718.00
8.2.60.0170.00318.12
8.2.50.0060.00818.20
8.2.40.0150.00418.26
8.2.30.0120.00718.30
8.2.20.0110.00518.23
8.2.10.0110.00618.26
8.2.00.0170.00518.39
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0170.00321.28
8.1.230.0140.00918.72
8.1.220.0110.00718.10
8.1.210.0160.00519.30
8.1.200.0150.00717.88
8.1.190.0120.00717.83
8.1.180.0150.00818.32
8.1.170.0120.00718.17
8.1.160.0150.00818.16
8.1.150.0130.00419.14
8.1.140.0170.00718.14
8.1.130.0180.00818.03
8.1.120.0210.00218.07
8.1.110.0080.00818.15
8.1.100.0120.01118.13
8.1.90.0110.00818.08
8.1.80.0150.00718.14
8.1.70.0080.00918.30
8.1.60.0250.00518.21
8.1.50.0170.00518.18
8.1.40.0170.00718.16
8.1.30.0110.00618.37
8.1.20.0100.00718.29
8.1.10.0200.00818.12
8.1.00.0150.00618.16
8.0.300.0110.00418.29
8.0.290.0060.00617.16
8.0.280.0110.00417.78
8.0.270.0130.00317.70
8.0.260.0140.00317.70
8.0.250.0190.00417.66
8.0.240.0160.00717.79
8.0.230.0130.00517.95
8.0.220.0130.00917.72
8.0.210.0200.00617.72
8.0.200.0210.00617.77
8.0.190.0200.00717.84
8.0.180.0140.01217.77
8.0.170.0190.00417.77
8.0.160.0200.00817.80
8.0.150.0210.00517.70
8.0.140.0190.00817.79
8.0.130.0170.00617.96
8.0.120.0190.00917.77
8.0.110.0160.00917.88
8.0.100.0210.00817.63
8.0.90.0200.00717.71
8.0.80.0280.00017.73
8.0.70.0170.00617.73
8.0.60.0190.00718.57
8.0.50.0180.00517.74
8.0.30.0100.00817.79
8.0.20.0150.00617.85
8.0.10.0100.00517.85

preferences:
32.05 ms | 400 KiB | 5 Q