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','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.0100.00718.56
8.3.50.0170.00921.93
8.3.40.0040.01118.54
8.3.30.0080.00819.00
8.3.20.0070.00020.41
8.3.10.0040.00423.57
8.3.00.0050.00322.44
8.2.180.0070.00716.75
8.2.170.0140.00722.96
8.2.160.0100.00322.11
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00417.50
8.2.110.0080.00322.02
8.2.100.0080.00417.44
8.2.90.0040.00419.24
8.2.80.0040.00417.97
8.2.70.0060.00617.63
8.2.60.0060.00617.93
8.2.50.0000.00818.07
8.2.40.0040.00418.03
8.2.30.0040.00418.16
8.2.20.0050.00217.58
8.2.10.0040.00417.81
8.2.00.0040.00417.68
8.1.280.0110.00325.92
8.1.270.0050.00323.97
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00923.85
8.1.230.0110.00019.16
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0000.00917.35
8.1.190.0000.00817.55
8.1.180.0000.00818.10
8.1.170.0000.00818.71
8.1.160.0040.00422.01
8.1.150.0070.00018.63
8.1.140.0000.00717.49
8.1.130.0000.00717.88
8.1.120.0000.00817.37
8.1.110.0070.00017.31
8.1.100.0070.00017.46
8.1.90.0080.00017.48
8.1.80.0000.00717.39
8.1.70.0030.00317.42
8.1.60.0060.00317.49
8.1.50.0030.00617.57
8.1.40.0000.00717.55
8.1.30.0030.00517.61
8.1.20.0030.00517.63
8.1.10.0000.00717.64
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0000.00818.38
8.0.270.0080.00017.23
8.0.260.0030.00316.72
8.0.250.0030.00316.86
8.0.240.0000.00816.80
8.0.230.0030.00316.93
8.0.220.0070.00016.82
8.0.210.0000.00716.73
8.0.200.0000.00617.01
8.0.190.0030.00516.85
8.0.180.0000.00716.80
8.0.170.0060.00316.92
8.0.160.0060.00316.85
8.0.150.0040.00416.81
8.0.140.0040.00416.91
8.0.130.0030.00313.39
8.0.120.0000.00816.75
8.0.110.0000.00816.86
8.0.100.0050.00216.77
8.0.90.0070.00016.86
8.0.80.0080.00916.84
8.0.70.0040.00416.76
8.0.60.0040.00416.94
8.0.50.0040.00416.77
8.0.30.0060.01317.00
8.0.20.0070.01117.40
8.0.10.0000.00717.04
8.0.00.0120.00616.59
7.4.330.0050.00015.01
7.4.320.0030.00316.61
7.4.300.0030.00316.48
7.4.290.0030.00316.53
7.4.280.0040.00416.54
7.4.270.0040.00416.42
7.4.260.0000.00716.56
7.4.250.0000.00816.54
7.4.240.0060.00116.61
7.4.230.0070.00016.32
7.4.220.0090.01216.54
7.4.210.0040.01216.56
7.4.200.0070.00016.63
7.4.190.0040.00416.69
7.4.160.0120.00316.45
7.4.150.0040.01317.40
7.4.140.0060.01117.86
7.4.130.0100.00816.54
7.4.120.0060.01116.48
7.4.110.0040.01416.41
7.4.100.0100.01016.59
7.4.90.0100.00916.52
7.4.80.0110.01116.39
7.4.70.0070.01016.56
7.4.60.0090.00916.41
7.4.50.0080.00016.36
7.4.40.0040.01122.77
7.4.30.0070.01016.52
7.4.00.0040.01114.86
7.3.330.0030.00313.28
7.3.320.0000.00513.16
7.3.310.0070.00016.30
7.3.300.0000.00716.35
7.3.290.0140.00016.30
7.3.280.0070.01016.27
7.3.270.0110.00617.40
7.3.260.0060.01216.26
7.3.250.0130.00516.46
7.3.240.0060.01816.39
7.3.230.0120.00916.53
7.3.210.0110.00616.34
7.3.200.0100.00719.39
7.3.190.0070.01016.30
7.3.180.0100.00716.68
7.3.170.0130.00316.58
7.3.160.0120.00316.20
7.3.120.0050.01114.76
7.3.110.0000.01814.86
7.3.100.0110.00414.77
7.3.90.0000.01314.71
7.3.80.0070.00714.89
7.3.70.0040.00814.95
7.3.60.0030.00714.88
7.3.50.0000.00914.64
7.3.40.0090.00614.66
7.3.30.0070.00414.61
7.3.20.0130.00016.12
7.3.10.0040.01116.27
7.3.00.0060.00916.31
7.2.330.0100.00716.48
7.2.320.0090.00916.68
7.2.310.0140.00916.68
7.2.300.0150.00616.57
7.2.290.0040.01216.75
7.2.250.0060.01015.14
7.2.240.0060.01514.69
7.2.230.0070.01015.02
7.2.220.0000.01315.21
7.2.210.0000.01315.18
7.2.200.0080.00015.04
7.2.190.0000.01415.07
7.2.180.0000.01114.89
7.2.170.0100.00714.81
7.2.00.0330.00219.16
7.1.330.0070.00815.79
7.1.320.0030.00515.46
7.1.310.0030.01315.78
7.1.300.0070.01015.64
7.1.290.0140.00015.57
7.1.280.0060.00315.52
7.1.270.0070.00715.76
7.1.260.0070.00715.77
7.1.100.0030.00618.07
7.1.70.0030.00316.86
7.1.60.0100.01419.24
7.1.50.0030.00916.96
7.1.00.0030.07722.37
7.0.200.0910.01016.52
7.0.140.0000.07022.11
7.0.60.0100.07320.03
7.0.50.0030.04317.88
7.0.40.0070.05019.96
7.0.30.0330.07020.20
7.0.20.0230.05720.09
7.0.10.0030.04720.12
7.0.00.0030.04720.25
5.6.280.0030.07321.00
5.6.210.0030.07720.55
5.6.200.0100.06718.16
5.6.190.0070.05020.63
5.6.180.0500.07320.52
5.6.170.0330.06720.62
5.6.160.0070.04020.55
5.6.150.0000.04318.23
5.6.140.0100.05318.27
5.6.130.0100.03318.14
5.6.120.0070.07721.01
5.6.110.0070.09021.00
5.6.100.0170.05020.99
5.6.90.0030.08720.97
5.6.80.0030.03720.52
5.5.350.0400.06720.45
5.5.340.0130.07018.09
5.5.330.0070.05020.43
5.5.320.0200.08020.35
5.5.310.0130.05320.25
5.5.300.0030.05718.00
5.5.290.0070.08018.07
5.5.280.0070.04320.80
5.5.270.0070.08320.89
5.5.260.0030.08720.88
5.5.250.0070.05720.69
5.5.240.0300.06320.07
5.4.450.0230.04019.41
5.4.440.0370.03019.52
5.4.430.0270.04019.45
5.4.420.0270.04019.54
5.4.410.0430.06319.05
5.4.400.0300.03319.09
5.4.390.0270.05319.00
5.4.380.0370.07318.98
5.4.370.0370.04719.14
5.4.360.0370.03319.16
5.4.350.0370.07319.22
5.4.340.0330.05019.22
5.4.320.0400.04019.09
5.4.310.0370.03319.09
5.4.300.0230.04719.25
5.4.290.0300.04719.16
5.4.280.0470.03019.13
5.4.270.0470.06019.16
5.4.260.0500.04019.10
5.4.250.0500.06019.14
5.4.240.0500.05318.84
5.4.230.0330.07019.06
5.4.220.0470.06019.08
5.4.210.0470.06018.85
5.4.200.0500.05718.85
5.4.190.0370.03718.97
5.4.180.0430.04719.21
5.4.170.0370.05319.23
5.4.160.0400.07318.97
5.4.150.0470.06719.07
5.4.140.0400.05316.36
5.4.130.0530.05016.43
5.4.120.0470.03716.46
5.4.110.0400.03016.57
5.4.100.0400.06016.56
5.4.90.0370.06716.50
5.4.80.0270.04016.55
5.4.70.0400.05716.22
5.4.60.0330.04316.56
5.4.50.0370.05016.32
5.4.40.0370.03716.52
5.4.30.0370.03316.53
5.4.20.0430.06016.32
5.4.10.0370.03716.25
5.4.00.0470.04715.80
5.3.290.0270.04314.72
5.3.280.0270.05314.76
5.3.270.0370.03714.63
5.3.260.0470.06314.77
5.3.250.0400.07014.58
5.3.240.0370.07714.57
5.3.230.0470.07714.59
5.3.220.0400.04714.48
5.3.210.0370.07014.47
5.3.200.0430.04314.62
5.3.190.0370.04014.73
5.3.180.0370.03314.58
5.3.170.0500.06014.57
5.3.160.0370.03314.65
5.3.150.0370.05014.47
5.3.140.0470.05714.53
5.3.130.0330.04314.57
5.3.120.0330.03714.57
5.3.110.0370.07314.63
5.3.100.0330.04013.94
5.3.90.0370.04714.07
5.3.80.0370.03714.09
5.3.70.0400.06313.99
5.3.60.0330.04014.05
5.3.50.0300.04013.86
5.3.40.0530.05313.89
5.3.30.0330.04713.99
5.3.20.0330.03713.63
5.3.10.0430.06313.55
5.3.00.0300.03713.62
5.2.170.0270.03011.30
5.2.160.0330.04711.37
5.2.150.0230.04311.16
5.2.140.0270.04011.15
5.2.130.0330.03311.22
5.2.120.0270.04011.06
5.2.110.0230.03311.00
5.2.100.0330.02311.01
5.2.90.0270.02711.18
5.2.80.0300.06311.00
5.2.70.0370.05311.25
5.2.60.0330.05310.95
5.2.50.0300.03010.98
5.2.40.0200.03011.07
5.2.30.0300.05010.89
5.2.20.0270.04011.12
5.2.10.0300.05710.91
5.2.00.0230.03710.89
5.1.60.0200.03010.89
5.1.50.0300.02710.89
5.1.40.0270.03710.89
5.1.30.0300.05310.89
5.1.20.0270.03310.89
5.1.10.0200.04010.89
5.1.00.0330.04710.89
5.0.50.0170.02710.89
5.0.40.0130.03310.89
5.0.30.0230.04710.89
5.0.20.0130.01710.89
5.0.10.0170.03310.89
5.0.00.0200.05710.89
4.4.90.0100.02010.89
4.4.80.0100.02310.89
4.4.70.0100.01710.89
4.4.60.0130.01310.89
4.4.50.0100.01710.89
4.4.40.0100.02710.89
4.4.30.0170.03010.89
4.4.20.0130.02310.89
4.4.10.0130.03310.89
4.4.00.0130.05010.89
4.3.110.0170.03010.89
4.3.100.0170.02710.89
4.3.90.0130.02010.89
4.3.80.0130.05310.89
4.3.70.0200.02710.89
4.3.60.0200.02710.89
4.3.50.0170.02010.89
4.3.40.0130.03310.89
4.3.30.0070.02010.89
4.3.20.0030.03010.89
4.3.10.0130.03310.89
4.3.00.0070.02010.89

preferences:
43.42 ms | 401 KiB | 5 Q