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 = new Test();

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.0140.00718.31
8.3.50.0100.01021.92
8.3.40.0110.00418.54
8.3.30.0080.01118.88
8.3.20.0050.00320.18
8.3.10.0000.00922.05
8.3.00.0000.00822.40
8.2.180.0120.00916.63
8.2.170.0100.00722.96
8.2.160.0080.00620.89
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0100.01026.16
8.2.120.0040.00419.36
8.2.110.0090.00021.94
8.2.100.0090.00317.74
8.2.90.0040.00419.23
8.2.80.0060.00317.97
8.2.70.0040.00417.48
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0080.00018.22
8.2.30.0030.00617.87
8.2.20.0000.00717.49
8.2.10.0000.00817.49
8.2.00.0000.00819.27
8.1.280.0100.01025.92
8.1.270.0090.00021.97
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.68
8.1.230.0120.00319.10
8.1.220.0000.00917.74
8.1.210.0050.00318.77
8.1.200.0000.00917.23
8.1.190.0080.00017.43
8.1.180.0050.00218.70
8.1.170.0040.00418.59
8.1.160.0040.00421.87
8.1.150.0030.00518.57
8.1.140.0000.00717.30
8.1.130.0000.00717.73
8.1.120.0030.00317.38
8.1.110.0040.00417.43
8.1.100.0030.00317.43
8.1.90.0000.00817.41
8.1.80.0030.00317.38
8.1.70.0070.00017.30
8.1.60.0000.00817.41
8.1.50.0040.00417.36
8.1.40.0000.00917.43
8.1.30.0080.00017.55
8.1.20.0030.00617.55
8.1.10.0000.00717.47
8.1.00.0030.00617.47
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0070.00018.38
8.0.270.0000.00717.19
8.0.260.0070.00016.74
8.0.250.0000.00716.93
8.0.240.0030.00316.87
8.0.230.0000.00716.71
8.0.220.0000.00716.81
8.0.210.0060.00016.80
8.0.200.0040.00416.89
8.0.190.0150.00016.78
8.0.180.0040.00416.79
8.0.170.0000.00816.82
8.0.160.0060.00316.82
8.0.150.0040.00316.67
8.0.140.0070.00016.83
8.0.130.0050.00313.22
8.0.120.0040.00416.85
8.0.110.0000.00716.76
8.0.100.0030.00516.84
8.0.90.0000.00716.70
8.0.80.0090.00916.80
8.0.70.0040.00416.94
8.0.60.0050.00316.87
8.0.50.0040.00416.68
8.0.30.0090.01116.94
8.0.20.0130.00717.40
8.0.10.0070.00016.85
8.0.00.0080.01416.64
7.4.330.0000.00615.00
7.4.320.0060.00016.50
7.4.300.0000.00616.44
7.4.290.0040.00416.41
7.4.280.0030.00616.53
7.4.270.0100.00016.54
7.4.260.0000.01016.43
7.4.250.0000.00716.50
7.4.240.0030.00516.40
7.4.230.0070.00016.35
7.4.220.0070.01316.60
7.4.210.0070.01116.37
7.4.200.0000.00716.48
7.4.190.0000.00716.50
7.4.160.0000.01616.56
7.4.150.0090.00917.40
7.4.140.0090.01317.86
7.4.130.0100.01016.39
7.4.120.0100.01016.46
7.4.110.0110.00716.57
7.4.100.0100.00916.28
7.4.90.0160.00616.30
7.4.80.0030.01419.39
7.4.70.0000.01616.44
7.4.60.0120.00616.34
7.4.50.0040.00416.23
7.4.40.0070.01022.77
7.4.30.0140.00316.26
7.4.00.0070.01014.78
7.3.330.0060.00012.95
7.3.320.0000.00613.02
7.3.310.0070.00016.07
7.3.300.0000.00616.04
7.3.290.0140.00716.07
7.3.280.0100.00516.20
7.3.270.0130.00417.40
7.3.260.0090.00816.21
7.3.250.0120.00816.35
7.3.240.0100.01016.23
7.3.230.0090.01316.39
7.3.210.0000.01716.40
7.3.200.0160.00619.39
7.3.190.0100.00716.63
7.3.180.0130.00316.13
7.3.170.0090.01116.27
7.3.160.0160.00016.18
7.3.120.0060.00614.68
7.3.10.0120.00415.79
7.3.00.0130.00315.70
7.2.330.0090.00916.23
7.2.320.0030.01316.64
7.2.310.0100.00616.60
7.2.300.0070.01016.47
7.2.290.0060.00916.47
7.2.130.0150.00615.87
7.2.120.0100.01016.20
7.2.110.0110.00616.24
7.2.100.0220.00416.05
7.2.90.0120.00916.22
7.2.80.0250.00616.95
7.2.70.0140.00716.07
7.2.60.0110.01116.29
7.2.50.0080.00616.19
7.2.40.0120.00816.10
7.2.30.0190.00016.15
7.2.20.0120.01216.03
7.2.10.0140.00316.00
7.2.00.0050.01017.81
7.1.250.0130.00314.96
7.1.100.0000.01317.71
7.1.70.0030.00516.95
7.1.60.0140.01119.82
7.1.50.0070.01116.95
7.1.00.0030.07722.33
7.0.200.0000.00916.54
7.0.140.0030.07721.95
7.0.90.0370.04019.89
7.0.80.0400.03719.91
7.0.70.0400.06020.00
7.0.60.0400.06020.10
7.0.50.0470.05320.30
7.0.40.0170.03020.15
7.0.30.0100.03020.08
7.0.20.0030.04020.15
7.0.10.0030.04319.99
7.0.00.0070.04020.00
5.6.280.0070.07020.90
5.6.240.0000.05320.68
5.6.230.0030.04020.60
5.6.220.0070.08020.61
5.6.210.0030.04020.47
5.6.200.0000.04721.05
5.6.190.0100.03721.04
5.6.180.0000.04321.05
5.6.170.0000.04721.04
5.6.160.0070.08021.01
5.6.150.0030.05021.07
5.6.140.0070.04321.14
5.6.130.0070.08721.13
5.6.120.0030.07021.00
5.6.110.0030.05721.05
5.6.100.0100.07721.00
5.6.90.0200.07320.98
5.6.80.0100.07720.43
5.6.70.0130.04720.40
5.6.60.0100.05720.43
5.6.50.0100.07320.43
5.6.40.0100.05720.43
5.6.30.0130.07020.45
5.6.20.0130.06720.31
5.6.10.0030.08020.49
5.6.00.0100.06720.39
5.5.380.0070.03720.36
5.5.370.0030.03320.51
5.5.360.0000.04720.56
5.5.350.0100.07320.45
5.5.340.0070.05720.92
5.5.330.0070.03720.74
5.5.320.0030.06720.89
5.5.310.0000.04320.93
5.5.300.0000.07020.77
5.5.290.0070.08320.83
5.5.280.0130.06720.83
5.5.270.0200.06020.93
5.5.260.0070.06720.76
5.5.250.0030.06720.64
5.5.240.0070.07020.28
5.5.230.0100.07320.21
5.5.220.0070.07720.26
5.5.210.0000.05720.18
5.5.200.0000.06020.23
5.5.190.0030.07720.23
5.5.180.0070.07020.15
5.5.160.0070.08320.26
5.5.150.0130.06720.23
5.5.140.0100.07320.11
5.5.130.0030.04720.15
5.5.120.0100.06720.14
5.5.110.0070.07320.12
5.5.100.0070.08020.12
5.5.90.0100.05320.06
5.5.80.0100.07320.07
5.5.70.0030.07720.06
5.5.60.0100.07320.09
5.5.50.0000.06020.15
5.5.40.0070.08020.13
5.5.30.0070.06020.12
5.5.20.0070.06720.03
5.5.10.0070.07019.92
5.5.00.0170.05020.03
5.4.450.0030.05019.22
5.4.440.0030.08019.48
5.4.430.0100.08319.36
5.4.420.0070.08019.50
5.4.410.0030.07719.23
5.4.400.0030.04718.90
5.4.390.0130.07018.88
5.4.380.0100.07018.84
5.4.370.0100.07319.18
5.4.360.0070.08018.94
5.4.350.0170.03719.24
5.4.340.0030.08019.10
5.4.320.0070.07319.05
5.4.310.0000.08318.87
5.4.300.0170.06719.15
5.4.290.0130.07019.18
5.4.280.0070.07019.02
5.4.270.0030.08319.11
5.4.260.0200.06319.18
5.4.250.0100.07019.02
5.4.240.0170.05719.17
5.4.230.0100.07018.90
5.4.220.0000.08319.17
5.4.210.0100.07319.03
5.4.200.0100.07319.04
5.4.190.0030.07718.92
5.4.180.0000.05319.07
5.4.170.0130.05018.89
5.4.160.0030.04319.09
5.4.150.0030.08318.82
5.4.140.0070.06716.38
5.4.130.0030.07316.45
5.4.120.0170.05716.41
5.4.110.0130.06316.47
5.4.100.0070.08016.53
5.4.90.0070.05016.32
5.4.80.0070.07316.45
5.4.70.0070.04716.34
5.4.60.0070.07316.45
5.4.50.0070.07716.39
5.4.40.0030.07016.49
5.4.30.0030.05716.29
5.4.20.0030.04716.46
5.4.10.0100.06716.32
5.4.00.0100.04715.80
5.3.290.0170.06714.73
5.3.280.0100.06714.57
5.3.270.0070.06314.71
5.3.260.0000.08014.66
5.3.250.0070.06714.63
5.3.240.0100.07014.60
5.3.230.0100.07714.66
5.3.220.0130.06014.58
5.3.210.0100.07714.55
5.3.200.0030.04014.71
5.3.190.0070.06014.63
5.3.180.0030.07314.57
5.3.170.0100.07014.59
5.3.160.0100.07314.57
5.3.150.0000.04714.65
5.3.140.0030.07314.55
5.3.130.0000.08314.61
5.3.120.0070.06714.69
5.3.110.0000.05314.62
5.3.100.0030.07314.06
5.3.90.0000.08313.99
5.3.80.0130.07014.12
5.3.70.0030.07014.02
5.3.60.0000.06714.06
5.3.50.0030.06013.94
5.3.40.0030.06014.00
5.3.30.0070.06014.05
5.3.20.0070.07313.75
5.3.10.0170.06013.80
5.3.00.0030.03713.62
5.2.170.0030.04011.20
5.2.160.0030.06711.16
5.2.150.0070.06011.18
5.2.140.0000.06011.25
5.2.130.0100.05711.17
5.2.120.0030.06310.98
5.2.110.0030.04311.17
5.2.100.0030.06011.13
5.2.90.0000.06711.16
5.2.80.0070.06011.19
5.2.70.0100.06010.98
5.2.60.0070.04311.09
5.2.50.0130.05310.94
5.2.40.0070.06311.14
5.2.30.0100.04310.88
5.2.20.0070.05711.11
5.2.10.0070.06010.79
5.2.00.0070.06010.85
5.1.60.0030.0539.88
5.1.50.0070.05010.05
5.1.40.0070.03710.01
5.1.30.0130.05310.37
5.1.20.0070.05310.46
5.1.10.0000.05310.16
5.1.00.0030.05710.15
5.0.50.0100.0308.56
5.0.40.0100.0378.46
5.0.30.0030.0678.29
5.0.20.0070.0378.27
5.0.10.0030.0438.18
5.0.00.0070.0608.01
4.4.90.0100.0277.34
4.4.80.0030.0277.34
4.4.70.0000.0377.34
4.4.60.0000.0377.34
4.4.50.0070.0337.34
4.4.40.0000.0507.34
4.4.30.0030.0337.34
4.4.20.0070.0337.34
4.4.10.0000.0307.34
4.4.00.0000.0577.34
4.3.110.0000.0377.34
4.3.100.0000.0377.34
4.3.90.0000.0377.34
4.3.80.0030.0537.34
4.3.70.0000.0377.34
4.3.60.0000.0377.34
4.3.50.0070.0307.34
4.3.40.0000.0407.34
4.3.30.0000.0377.34
4.3.20.0030.0337.34
4.3.10.0030.0337.34
4.3.00.0000.0377.34

preferences:
37.99 ms | 401 KiB | 5 Q