3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $arr = array('<a>test</a>','&b','c'); class Security { public static function safeArray($array){ array_walk_recursive( $array, function(&$array){ $array = htmlspecialchars(strip_tags($array)); } ); return $array; } } print_r(Security::safeArray($arr));

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.00716.75
8.3.50.0090.00716.46
8.3.40.0000.01518.58
8.3.30.0090.01218.54
8.3.20.0000.00818.60
8.3.10.0060.00318.72
8.3.00.0050.00319.13
8.2.180.0130.00316.50
8.2.170.0110.00422.96
8.2.160.0090.00618.91
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00820.94
8.2.110.0000.00820.45
8.2.100.0040.00917.72
8.2.90.0040.00417.75
8.2.80.0030.00518.79
8.2.70.0030.00517.63
8.2.60.0030.00617.87
8.2.50.0030.00518.07
8.2.40.0050.00319.36
8.2.30.0000.00917.68
8.2.20.0030.00617.50
8.2.10.0070.00017.67
8.2.00.0060.00317.65
8.1.280.0070.01425.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0000.00918.89
8.1.230.0070.00417.71
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.35
8.1.180.0000.00818.10
8.1.170.0090.00018.81
8.1.160.0070.00019.02
8.1.150.0030.00518.58
8.1.140.0000.00717.36
8.1.130.0040.00419.08
8.1.120.0030.00517.45
8.1.110.0000.00717.44
8.1.100.0040.00417.41
8.1.90.0050.00317.50
8.1.80.0000.00717.46
8.1.70.0070.00017.40
8.1.60.0000.00917.47
8.1.50.0000.00717.45
8.1.40.0040.00417.57
8.1.30.0040.00417.59
8.1.20.0040.00417.70
8.1.10.0050.00217.48
8.1.00.0000.00817.49
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.44
8.0.270.0070.00017.27
8.0.260.0030.00316.66
8.0.250.0040.00416.91
8.0.240.0030.00316.90
8.0.230.0040.00416.95
8.0.220.0000.00716.71
8.0.210.0000.00816.79
8.0.200.0000.00716.92
8.0.190.0000.00816.89
8.0.180.0060.00316.93
8.0.170.0000.00916.79
8.0.160.0000.00716.83
8.0.150.0060.00316.66
8.0.140.0060.00316.82
8.0.130.0060.00013.31
8.0.120.0000.00816.83
8.0.110.0070.00016.92
8.0.100.0040.00416.88
8.0.90.0040.00416.85
8.0.80.0060.00916.95
8.0.70.0040.00416.95
8.0.60.0060.00316.86
8.0.50.0000.00716.88
8.0.30.0100.00717.36
8.0.20.0070.01116.98
8.0.10.0040.00416.98
8.0.00.0070.01216.81
7.4.330.0030.00313.05
7.4.320.0030.00316.65
7.4.300.0000.00716.51
7.4.290.0100.00016.60
7.4.280.0040.00416.59
7.4.270.0030.00316.46
7.4.260.0050.00013.30
7.4.250.0030.00516.59
7.4.240.0040.00416.60
7.4.230.0060.00316.57
7.4.220.0060.01216.66
7.4.210.0030.01216.59
7.4.200.0040.00416.34
7.4.190.0000.00816.46
7.4.160.0130.00616.29
7.4.150.0090.00916.50
7.4.140.0150.00617.86
7.4.130.0050.01416.51
7.4.120.0040.01216.33
7.4.110.0090.00916.65
7.4.100.0110.00816.53
7.4.90.0030.02016.46
7.4.80.0100.00619.39
7.4.70.0040.01616.37
7.4.60.0070.01416.28
7.4.50.0030.00616.45
7.4.40.0070.01016.42
7.4.30.0060.01216.66
7.4.00.0000.01315.04
7.3.330.0000.00613.28
7.3.320.0020.00413.28
7.3.310.0020.00516.13
7.3.300.0040.00416.35
7.3.290.0070.00916.37
7.3.280.0120.00316.20
7.3.270.0030.01316.27
7.3.260.0140.00416.36
7.3.240.0070.01016.26
7.3.230.0000.01716.23
7.3.210.0130.00316.32
7.3.200.0040.01116.33
7.3.190.0130.00316.61
7.3.180.0090.00616.45
7.3.170.0110.00716.41
7.3.160.0100.00716.45
7.3.120.0090.00614.91
7.2.330.0040.01516.71
7.2.320.0030.01316.29
7.2.310.0160.00616.42
7.2.300.0070.00916.48
7.2.290.0100.00716.70
7.2.00.0030.00919.41
7.1.100.0030.01017.86
7.1.70.0000.00717.24
7.1.60.0070.01819.30
7.1.50.0000.01916.86
7.1.00.0070.03022.33
7.0.200.0040.00416.66
7.0.140.0030.07722.21
7.0.120.0070.06322.02
7.0.60.0070.08319.93
7.0.50.0030.08317.72
7.0.40.0170.08019.96
7.0.30.0570.07720.08
7.0.20.0300.08020.03
7.0.10.0170.08020.07
7.0.00.0030.04320.06
5.6.280.0030.07320.91
5.6.210.0130.07020.66
5.6.200.0100.04318.16
5.6.190.0130.08020.58
5.6.180.0300.07020.41
5.6.170.0170.06020.47
5.6.160.0100.06320.44
5.6.150.0100.06318.12
5.6.140.0030.04718.19
5.6.130.0100.05718.27
5.6.120.0130.05721.15
5.6.110.0100.06320.92
5.6.100.0100.08321.00
5.6.90.0100.08321.11
5.6.80.0070.07020.39
5.6.70.4300.03720.51
5.5.350.0170.07320.33
5.5.340.0130.07317.98
5.5.330.0100.08020.27
5.5.320.0200.04320.51
5.5.310.0330.07720.36
5.5.300.0070.05017.98
5.5.290.0100.08018.08
5.5.280.0030.04020.80
5.5.270.0130.06020.95
5.5.260.0100.07020.80
5.5.250.0030.04020.58
5.5.240.0030.08020.07
5.4.450.0470.06319.61
5.4.440.0530.05719.50
5.4.430.0500.05019.50
5.4.420.0600.05019.46
5.4.410.0600.06319.44
5.4.400.0630.06718.81
5.4.390.0630.07018.83
5.4.380.0700.06718.84
5.4.370.0530.07319.22
5.4.360.0630.07318.84
5.4.350.0700.06319.13
5.4.340.0670.07019.26
5.4.320.0530.06319.02
5.4.310.0600.06018.96
5.4.300.0670.04719.25
5.4.290.0400.06018.96
5.4.280.0500.05319.13
5.4.270.0430.05319.23
5.4.260.0500.05019.25
5.4.250.0170.05319.13
5.4.240.0430.05719.27
5.4.230.0470.05319.09
5.4.220.0530.04719.25
5.4.210.0430.04319.27
5.4.200.0170.05318.83
5.4.190.0300.05719.20
5.4.180.0330.06319.00
5.4.170.0370.04719.11
5.4.160.0230.04019.30
5.4.150.0400.06019.11
5.4.140.0570.04316.55
5.4.130.0530.04716.52
5.4.120.0470.05716.44
5.4.110.0500.04316.51
5.4.100.0530.04316.55
5.4.90.0370.06016.56
5.4.80.0430.04316.63
5.4.70.0430.04716.55
5.4.60.0300.05316.57
5.4.50.0030.05716.48
5.4.40.0130.06016.47
5.4.30.0300.05316.34
5.4.20.0130.05016.57
5.4.10.0300.06016.34
5.4.00.0430.04716.00
5.3.290.0530.04314.57
5.3.280.0470.04314.63
5.3.270.0370.05714.50
5.3.260.0500.04714.65
5.3.250.0330.05314.50
5.3.240.0430.04314.82
5.3.230.0370.04314.49
5.3.220.0330.06014.46
5.3.210.0570.07714.61
5.3.200.0500.06014.71
5.3.190.0530.05314.46
5.3.180.0430.05714.61
5.3.170.0470.04314.46
5.3.160.0430.05014.57
5.3.150.0400.05014.59
5.3.140.0370.05014.61
5.3.130.0200.04714.63
5.3.120.0230.05014.61
5.3.110.0130.05714.39
5.3.100.0270.04014.04
5.3.90.0130.05013.93
5.3.80.0300.03714.02
5.3.70.0200.05013.92
5.3.60.0100.05314.00
5.3.50.0170.04713.86
5.3.40.0270.04014.00
5.3.30.0130.05014.05
5.3.20.0170.05013.75
5.3.10.0070.05313.55
5.3.00.0200.04713.55
5.2.170.0200.03311.16
5.2.160.0200.03011.21
5.2.150.0130.04011.37
5.2.140.0070.04711.04
5.2.130.0030.04711.03
5.2.120.0070.04011.16
5.2.110.0030.04711.10
5.2.100.0130.03310.99
5.2.90.0070.04311.24
5.2.80.0330.04310.99
5.2.70.0400.04011.14
5.2.60.0370.05010.98
5.2.50.0430.04010.91
5.2.40.0270.04311.21
5.2.30.0270.04310.88
5.2.20.0370.04310.96
5.2.10.0400.03711.10
5.2.00.0230.04010.55
5.1.60.0270.0339.92
5.1.50.0230.0339.98
5.1.40.0270.03010.05
5.1.30.0500.03310.23
5.1.20.0370.04310.25
5.1.10.0200.04010.00
5.1.00.0200.04010.09
5.0.50.0170.0278.54
5.0.40.0130.0308.43
5.0.30.0200.0408.21
5.0.20.0170.0378.11
5.0.10.0200.0278.06
5.0.00.0130.0478.31
4.4.90.0230.0176.16
4.4.80.0200.0206.16
4.4.70.0170.0236.16
4.4.60.0170.0176.16
4.4.50.0200.0206.16
4.4.40.0200.0376.16
4.4.30.0230.0136.16
4.4.20.0170.0206.16
4.4.10.0200.0176.16
4.4.00.0200.0276.16
4.3.110.0200.0206.16
4.3.100.0170.0206.16
4.3.90.0170.0206.16
4.3.80.0200.0306.16
4.3.70.0170.0176.16
4.3.60.0170.0176.16
4.3.50.0100.0236.16
4.3.40.0170.0406.16
4.3.30.0130.0306.16
4.3.20.0100.0236.16
4.3.10.0100.0206.16
4.3.00.0100.0236.16

preferences:
44.19 ms | 401 KiB | 5 Q