3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private function testFunction($arr) { array_walk_recursive($arr, array('ControllerModuleStickyLabels','alt_json_encode_callback')); return mb_decode_numericentity(json_encode($arr), array (0x80, 0xffff, 0, 0xffff), 'UTF-8'); } private function alt_json_encode_callback (&$item, $key) { if (is_string($item)) $item = mb_encode_numericentity($item, array (0x80, 0xffff, 0, 0xffff), 'UTF-8'); } } $a= Test::testFunction($array('1'=>'1')); vardump($a);

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)
5.4.270.0230.04718.96
5.4.260.0100.08318.65
5.4.250.0070.07318.76
5.4.240.0100.06318.95
5.4.230.0130.05718.85
5.4.220.0070.07318.95
5.4.210.0100.05718.83
5.4.200.0170.07318.66
5.4.190.0130.05018.79
5.4.180.0300.05019.08
5.4.170.0130.07718.75
5.4.160.0170.07019.08
5.4.150.0100.09318.93
5.4.140.0130.07716.52
5.4.130.0030.07016.47
5.4.120.0170.05316.46
5.4.110.0170.07016.41
5.4.100.0130.04716.49
5.4.90.0130.06716.57
5.4.80.0230.05716.44
5.4.70.0070.06016.70
5.4.60.0100.05016.32
5.4.50.0230.04316.49
5.4.40.0100.04716.41
5.4.30.0170.05016.49
5.4.20.0170.06016.36
5.4.10.0230.06016.47
5.4.00.0070.06015.80
5.3.280.0170.06714.68
5.3.270.0130.05314.70
5.3.260.0130.05014.71
5.3.250.0100.06314.68
5.3.240.0170.05014.59
5.3.230.0130.07314.58
5.3.220.0100.06714.65
5.3.210.0130.06314.66
5.3.200.0200.04314.48
5.3.190.0170.06314.66
5.3.180.0130.06314.75
5.3.170.0170.06714.54
5.3.160.0100.07714.66
5.3.150.0130.08014.79
5.3.140.0100.05314.64
5.3.130.0130.06014.54
5.3.120.0130.06714.64
5.3.110.0130.06714.63
5.3.100.0100.06714.06
5.3.90.0100.06714.01
5.3.80.0130.05314.11
5.3.70.0070.05714.21
5.3.60.0100.05314.22
5.3.50.0100.06013.98
5.3.40.0030.06013.94
5.3.30.0170.06013.90
5.3.20.0100.07013.79
5.3.10.0070.07313.56
5.3.00.0230.04013.81
5.2.170.0100.04311.12
5.2.160.0000.05311.11
5.2.150.0070.06011.22
5.2.140.0000.05311.21
5.2.130.0130.04711.32
5.2.120.0130.04711.19
5.2.110.0070.05711.32
5.2.100.0030.05011.19
5.2.90.0100.04311.11
5.2.80.0130.04711.18
5.2.70.0100.06011.16
5.2.60.0100.04011.06
5.2.50.0100.04711.10
5.2.40.0030.05310.83
5.2.30.0100.04311.05
5.2.20.0030.04711.05
5.2.10.0130.04310.93
5.2.00.0070.04010.56
5.1.60.0100.04010.02
5.1.50.0000.04310.02
5.1.40.0000.04010.05
5.1.30.0100.05010.43
5.1.20.0070.03710.58
5.1.10.0000.05310.31
5.1.00.0130.02710.04
5.0.50.0070.0308.61
5.0.40.0000.0308.61
5.0.30.0070.0538.46
5.0.20.0100.0208.12
5.0.10.0030.0438.41
5.0.00.0030.0478.16
4.4.90.0000.0276.85
4.4.80.0070.0276.85
4.4.70.0070.0236.85
4.4.60.0000.0336.85
4.4.50.0030.0276.85
4.4.40.0000.0476.85
4.4.30.0000.0306.85
4.4.20.0030.0206.85
4.4.10.0100.0206.85
4.4.00.0000.0406.85
4.3.110.0030.0236.85
4.3.100.0000.0276.85
4.3.90.0070.0276.85
4.3.80.0030.0306.85
4.3.70.0030.0306.85
4.3.60.0030.0236.85
4.3.50.0100.0206.85
4.3.40.0030.0436.85
4.3.30.0000.0306.85
4.3.20.0000.0276.85
4.3.10.0070.0236.85
4.3.00.0000.0237.72

preferences:
141.31 ms | 1394 KiB | 7 Q