3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ true, ['abc', 'def', false], false, 1, 'ghi', 2, [['HELLO', 'WORLD', true], [123, 456, false, 'false'], ], ]; array_walk_recursive( $myArray, function (&$value) { if (is_bool($value)) { $value = 'I AM A BOOLEAN'; } } ); var_dump($myArray);

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.20.0070.01417.61
8.4.10.0040.00417.57
8.3.140.0110.00716.68
8.3.130.0090.00618.60
8.3.120.0100.00719.05
8.3.110.0060.00320.94
8.3.100.0120.00616.48
8.3.90.0090.00926.77
8.3.80.0030.00618.18
8.3.70.0170.00318.24
8.3.60.0140.00718.45
8.3.50.0110.00720.99
8.3.40.0030.01018.54
8.3.30.0070.00719.14
8.3.20.0080.00020.21
8.3.10.0080.00023.51
8.3.00.0080.00019.43
8.2.260.0030.00518.82
8.2.250.0190.00417.13
8.2.240.0100.00618.79
8.2.230.0060.00322.58
8.2.220.0050.00337.54
8.2.210.0110.00426.77
8.2.200.0060.00316.75
8.2.190.0040.01616.63
8.2.180.0090.01318.25
8.2.170.0150.00022.96
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0060.00925.33
8.2.130.0000.00826.16
8.2.120.0060.00326.16
8.2.110.0060.00322.29
8.2.100.0090.00317.91
8.2.90.0110.00022.39
8.2.80.0080.00017.97
8.2.70.0040.00417.93
8.2.60.0000.00818.09
8.2.50.0080.00518.10
8.2.40.0060.00318.09
8.2.30.0090.00418.47
8.2.20.0050.00717.59
8.2.10.0100.00317.86
8.2.00.0080.00417.81
8.1.310.0140.00516.27
8.1.300.0030.00717.69
8.1.290.0090.00030.84
8.1.280.0040.01825.92
8.1.270.0060.00324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.41
8.1.230.0110.00020.90
8.1.220.0070.00317.74
8.1.210.0040.00419.04
8.1.200.0030.00517.22
8.1.190.0030.00617.23
8.1.180.0080.00018.10
8.1.170.0040.00418.49
8.1.160.0060.00719.78
8.1.150.0050.00718.19
8.1.140.0090.00317.56
8.1.130.0070.00518.43
8.1.120.0080.00517.46
8.1.110.0070.00617.52
8.1.100.0070.00517.54
8.1.90.0090.00417.51
8.1.80.0080.00417.43
8.1.70.0060.00717.47
8.1.60.0110.00617.58
8.1.50.0090.00617.52
8.1.40.0110.00617.50
8.1.30.0100.00517.58
8.1.20.0090.00417.61
8.1.10.0120.00517.49
8.1.00.0100.00517.44
8.0.300.0060.00319.94
8.0.290.0040.00416.63
8.0.280.0060.00518.02
8.0.270.0100.00217.40
8.0.260.0090.00317.21
8.0.250.0020.00717.15
8.0.240.0060.00717.11
8.0.230.0090.00417.08
8.0.220.0070.00617.04
8.0.210.0100.00317.00
8.0.200.0090.00517.06
8.0.190.0100.00417.02
8.0.180.0120.00317.02
8.0.170.0100.00417.09
8.0.160.0070.00717.02
8.0.150.0080.00816.96
8.0.140.0110.00416.96
8.0.130.0120.00316.25
8.0.120.0120.00316.96
8.0.110.0080.00617.02
8.0.100.0080.00517.01
8.0.90.0080.00516.97
8.0.80.0110.00316.96
8.0.70.0070.00716.95
8.0.60.0080.00416.96
8.0.50.0070.00516.97
8.0.30.0100.00516.96
8.0.20.0110.00917.09
8.0.10.0120.00617.09
8.0.00.0100.00717.00
7.4.330.0030.00616.32
7.4.320.0040.00916.88
7.4.300.0110.00316.84
7.4.290.0070.00716.80
7.4.280.0080.00716.81
7.4.270.0110.00416.75
7.4.260.0140.00316.76
7.4.250.0080.00816.70
7.4.240.0080.00616.73
7.4.230.0110.00516.75
7.4.220.0080.00816.75
7.4.210.0090.00716.72
7.4.200.0060.00616.69
7.4.190.0110.00316.72
7.4.180.0090.00516.84
7.4.160.0100.00716.71
7.4.150.0110.00616.72
7.4.140.0130.00516.88
7.4.130.0110.00716.54
7.4.120.0120.00616.53
7.4.110.0110.00816.57
7.4.100.0090.00916.62
7.4.90.0120.00716.57
7.4.80.0120.00616.79
7.4.70.0100.00716.52
7.4.60.0110.00616.47
7.4.50.0090.00616.48
7.4.40.0090.00816.42
7.4.30.0090.00816.46
7.4.20.0090.00716.47
7.4.10.0090.00716.50
7.4.00.0110.00716.43
7.3.330.0080.00515.97
7.3.320.0090.00615.88
7.3.310.0120.00416.50
7.3.300.0110.00416.52
7.3.290.0120.00416.44
7.3.280.0110.00716.34
7.3.270.0100.00916.54
7.3.260.0100.00716.35
7.3.250.0120.00616.33
7.3.240.0120.00616.33
7.3.230.0120.00616.34
7.3.220.0130.00516.30
7.3.210.0110.00616.34
7.3.200.0100.00716.61
7.3.190.0110.00716.34
7.3.180.0110.00716.31
7.3.170.0110.00716.34
7.3.160.0110.00616.33
7.3.150.0090.00816.30
7.3.140.0110.00616.32
7.3.130.0120.00416.37
7.3.120.0090.00716.17
7.3.110.0100.00816.17
7.3.100.0100.00816.07
7.3.90.0080.00916.18
7.3.80.0090.00916.12
7.3.70.0120.00716.16
7.3.60.0090.00916.10
7.3.50.0110.00716.16
7.3.40.0110.00716.13
7.3.30.0100.00816.14
7.3.20.0120.00816.58
7.3.10.0110.00716.53
7.3.00.0160.00816.31
7.2.340.0120.00616.44
7.2.330.0140.00516.44
7.2.320.0120.00716.43
7.2.310.0100.00916.47
7.2.300.0110.00816.48
7.2.290.0120.00816.44
7.2.280.0090.00916.48
7.2.270.0120.00616.39
7.2.260.0110.00816.47
7.2.250.0110.00916.33
7.2.240.0120.00916.31
7.2.230.0100.00916.17
7.2.220.0120.00816.22
7.2.210.0100.00916.22
7.2.200.0120.00816.28
7.2.190.0100.00816.27
7.2.180.0130.00716.25
7.2.170.0120.00816.30
7.2.160.0120.00716.29
7.2.150.0120.00816.77
7.2.140.0140.00616.81
7.2.130.0140.00716.57
7.2.120.0150.00616.54
7.2.110.0180.00816.59
7.2.100.0160.00716.53
7.2.90.0140.00816.56
7.2.80.0150.00716.55
7.2.70.0160.00716.59
7.2.60.0150.00616.57
7.2.50.0150.00716.57
7.2.40.0150.00716.57
7.2.30.0160.00716.54
7.2.20.0190.00816.56
7.2.10.0170.00816.58
7.2.00.0170.00616.75
7.1.330.0170.00715.93
7.1.320.0120.00815.77
7.1.310.0160.00715.78
7.1.300.0140.00615.83
7.1.290.0160.00615.81
7.1.280.0150.00915.79
7.1.270.0140.00715.84
7.1.260.0150.00515.78
7.1.250.0140.00815.50
7.1.240.0190.00515.54
7.1.230.0160.00915.50
7.1.220.0190.00615.53
7.1.210.0180.00815.52
7.1.200.0170.00615.58
7.1.190.0170.00715.52
7.1.180.0160.00715.53
7.1.170.0170.00815.48
7.1.160.0180.00615.49
7.1.150.0170.00815.47
7.1.140.0160.00715.50
7.1.130.0150.00915.49
7.1.120.0170.00715.48
7.1.110.0180.00615.54
7.1.100.0160.00615.65
7.1.90.0200.00515.50
7.1.80.0190.00615.50
7.1.70.0160.00615.55
7.1.60.0180.00715.66
7.1.50.0210.00615.59
7.1.40.0180.00615.57
7.1.30.0170.00715.56
7.1.20.0190.00515.61
7.1.10.0160.00815.60
7.1.00.0200.00715.58
7.0.330.0180.00615.21
7.0.320.0160.00715.18
7.0.310.0180.00815.20
7.0.300.0140.00815.21
7.0.290.0190.00615.20
7.0.280.0210.00715.22
7.0.270.0170.00615.23
7.0.260.0170.00615.28
7.0.250.0170.00715.27
7.0.240.0150.00815.35
7.0.230.0170.00615.31
7.0.220.0190.00615.26
7.0.210.0150.00815.22
7.0.200.0150.00815.32
7.0.190.0150.00715.32
7.0.180.0160.00715.33
7.0.170.0160.00715.32
7.0.160.0170.00715.27
7.0.150.0190.00515.25
7.0.140.0160.00715.29
7.0.130.0160.00715.54
7.0.120.0190.00515.47
7.0.110.0160.00615.40
7.0.100.0170.00715.40
7.0.90.0160.00815.38
7.0.80.0180.00515.38
7.0.70.0200.00615.39
7.0.60.0160.00715.36
7.0.50.0150.00815.34
7.0.40.0170.00815.38
7.0.30.0170.00715.40
7.0.20.0160.00715.36
7.0.10.0150.00715.59
7.0.00.0160.00715.34
5.6.400.0150.00715.62
5.6.390.0150.00715.66
5.6.380.0150.00615.42
5.6.370.0150.00715.44
5.6.360.0130.00915.48
5.6.350.0140.00815.49
5.6.340.0150.00815.48
5.6.330.0110.01015.47
5.6.320.0120.00915.49
5.6.310.0150.00715.51
5.6.300.0140.00915.70
5.6.290.0130.01215.71
5.6.280.0130.01015.86
5.6.270.0150.00815.80
5.6.260.0140.00915.85
5.6.250.0130.00915.75
5.6.240.0150.00815.81
5.6.230.0140.00915.79
5.6.220.0120.01115.79
5.6.210.0160.00815.72
5.6.200.0150.00915.81
5.6.190.0130.01415.84
5.6.180.0140.01015.85
5.6.170.0140.01015.82
5.6.160.0150.01015.82
5.6.150.0140.01215.79
5.6.140.0130.01015.82
5.6.130.0120.01115.81
5.6.120.0130.01115.80
5.6.110.0130.01015.75
5.6.100.0120.01015.75
5.6.90.0140.00815.74
5.6.80.0120.01115.70
5.6.70.0130.00915.68
5.6.60.0130.01015.68
5.6.50.0120.01115.64
5.6.40.0130.01015.71
5.6.30.0140.00915.70
5.6.20.0140.00915.65
5.6.10.0130.01015.66
5.6.00.0130.01015.69
5.5.380.0130.01015.26
5.5.370.0130.01015.20
5.5.360.0130.01015.14
5.5.350.0150.00815.18
5.5.340.0130.01115.16
5.5.330.0130.01015.19
5.5.320.0120.01215.20
5.5.310.0140.01015.17
5.5.300.0130.00915.16
5.5.290.0130.00915.22
5.5.280.0140.00915.09
5.5.270.0140.01015.12
5.5.260.0120.01015.14
5.5.250.0140.01015.16
5.5.240.0120.01115.14
5.5.230.0150.00815.18
5.5.220.0130.00915.16
5.5.210.0120.01015.17
5.5.200.0140.00915.11
5.5.190.0120.01015.06
5.5.180.0130.01015.06
5.5.170.0120.01014.95
5.5.160.0140.00915.12
5.5.150.0110.01115.05
5.5.140.0130.01015.08
5.5.130.0120.01015.03
5.5.120.0130.01015.10
5.5.110.0140.01015.05
5.5.100.0140.01015.15
5.5.90.0150.00915.10
5.5.80.0150.00815.13
5.5.70.0130.00915.12
5.5.60.0140.00915.14
5.5.50.0130.00915.13
5.5.40.0140.00915.04
5.5.30.0120.01015.13
5.5.20.0130.00915.08
5.5.10.0140.00815.13
5.5.00.0140.00915.05
5.4.450.0100.00913.08
5.4.440.0110.00813.05
5.4.430.0110.00713.06
5.4.420.0110.00813.05
5.4.410.0100.00913.06
5.4.400.0100.00812.98
5.4.390.0100.00813.01
5.4.380.0100.00812.97
5.4.370.0100.00812.97
5.4.360.0100.00813.02
5.4.350.0110.00712.92
5.4.340.0100.00812.98
5.4.330.0110.00612.66
5.4.320.0110.00713.02
5.4.310.0100.00812.96
5.4.300.0100.00712.98
5.4.290.0100.00813.06
5.4.280.0120.00713.03
5.4.270.0100.00812.99
5.4.260.0120.00712.99
5.4.250.0100.01012.97
5.4.240.0100.00812.94
5.4.230.0110.00812.90
5.4.220.0110.00812.90
5.4.210.0090.00912.91
5.4.200.0110.00812.92
5.4.190.0120.00712.90
5.4.180.0120.00712.91
5.4.170.0130.00712.92
5.4.160.0130.00612.95
5.4.150.0110.00712.90
5.4.140.0110.00812.85
5.4.130.0100.00812.83
5.4.120.0110.00712.85
5.4.110.0100.00712.87
5.4.100.0100.00812.91
5.4.90.0110.00612.84
5.4.80.0110.00612.93
5.4.70.0100.00712.88
5.4.60.0120.00612.93
5.4.50.0100.00812.83
5.4.40.0090.01112.85
5.4.30.0120.00612.86
5.4.20.0110.00812.88
5.4.10.0100.00912.91
5.4.00.0110.00712.77

preferences:
83.55 ms | 403 KiB | 5 Q