3v4l.org

run code in 300+ PHP versions simultaneously
<?php function removeExtraCharacters($key) { $str = ""; $i = 0; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } return $str; } function saveDataFormatMessage($data,$key) { $j = 0; $key = removeExtraCharacters($key); $str = $data.""; $rtn = ""; while ($j < strlen($str)) { $rtn .= substr($key,$str[$j],1); $j++; } return $rtn; } function showDataValueMessage($data,$key) { $j = 0; $key = removeExtraCharacters($key); $rtn = ""; while ($j < strlen($data)) { $rtn .= strpos($key,$data[$j]).""; $j++; } return $rtn; } echo saveDataFormatMessage(985651278,md5(""))."\n"; echo showDataValueMessage("2b9f9410b",md5(""));

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.0090.00916.63
8.3.50.0120.00722.10
8.3.40.0180.00318.94
8.3.30.0210.00019.05
8.3.20.0000.00720.20
8.3.10.0000.00823.48
8.3.00.0100.00017.63
8.2.180.0040.01116.50
8.2.170.0090.00622.96
8.2.160.0120.00320.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0140.00326.16
8.2.120.0040.00422.12
8.2.110.0040.00422.21
8.2.100.0070.00417.84
8.2.90.0030.00519.12
8.2.80.0080.00018.16
8.2.70.0030.00617.35
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00718.09
8.2.20.0080.00017.87
8.2.10.0050.00218.20
8.2.00.0070.00317.72
8.1.280.0100.00625.92
8.1.270.0090.00022.10
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.81
8.1.230.0080.00419.16
8.1.220.0030.00517.77
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0040.00417.53
8.1.180.0030.00518.10
8.1.170.0000.00818.59
8.1.160.0070.00022.03
8.1.150.0000.00818.57
8.1.140.0000.00717.50
8.1.130.0000.00717.94
8.1.120.0030.00517.50
8.1.110.0030.00517.52
8.1.100.0000.00817.49
8.1.90.0040.00417.46
8.1.80.0000.00717.51
8.1.70.0000.00717.39
8.1.60.0040.00417.59
8.1.50.0030.00617.52
8.1.40.0070.00017.49
8.1.30.0050.00317.53
8.1.20.0080.00017.53
8.1.10.0040.00417.46
8.1.00.0000.00917.57
8.0.300.0040.00418.77
8.0.290.0050.00317.05
8.0.280.0080.00018.46
8.0.270.0030.00317.23
8.0.260.0000.00617.18
8.0.250.0000.00716.86
8.0.240.0040.00416.91
8.0.230.0030.00616.85
8.0.220.0000.00716.91
8.0.210.0040.00416.89
8.0.200.0040.00416.85
8.0.190.0030.00516.99
8.0.180.0030.00516.94
8.0.170.0040.00416.79
8.0.160.0070.00016.85
8.0.150.0040.00316.70
8.0.140.0000.00716.77
8.0.130.0020.00513.36
8.0.120.0030.00516.79
8.0.110.0060.00316.89
8.0.100.0040.00416.89
8.0.90.0000.00816.80
8.0.80.0100.00516.92
8.0.70.0000.00717.03
8.0.60.0030.00516.89
8.0.50.0080.00016.91
8.0.30.0090.01016.96
8.0.20.0090.00917.40
8.0.10.0050.00216.97
8.0.00.0060.01316.88
7.4.330.0000.00615.20
7.4.320.0030.00616.42
7.4.300.0000.00616.62
7.4.290.0030.00316.63
7.4.280.0000.00716.50
7.4.270.0070.00016.63
7.4.260.0040.00416.51
7.4.250.0070.00016.63
7.4.240.0050.00216.56
7.4.230.0030.00316.72
7.4.220.0060.01316.55
7.4.210.0080.00916.64
7.4.200.0050.00216.57
7.4.190.0000.00816.71
7.4.160.0150.00416.50
7.4.150.0070.01317.40
7.4.140.0090.01117.86
7.4.130.0060.01116.58
7.4.120.0090.00716.45
7.4.110.0100.00716.52
7.4.100.0120.00616.52
7.4.90.0070.01016.58
7.4.80.0120.00919.39
7.4.70.0030.01516.59
7.4.60.0080.00816.49
7.4.50.0030.00316.34
7.4.40.0110.00422.77
7.4.30.0080.01116.47
7.4.00.0070.00715.03
7.3.330.0000.00513.38
7.3.320.0000.00513.34
7.3.310.0050.00216.39
7.3.300.0030.00316.44
7.3.290.0030.01316.39
7.3.280.0060.01416.35
7.3.270.0070.01017.40
7.3.260.0120.00416.73
7.3.250.0080.01216.47
7.3.240.0080.01616.56
7.3.230.0180.00316.40
7.3.210.0090.00616.39
7.3.200.0060.01319.39
7.3.190.0140.00316.68
7.3.180.0160.00616.68
7.3.170.0060.00916.46
7.3.160.0060.00916.31
7.3.120.0030.01214.91
7.3.10.0040.00816.34
7.3.00.0070.00716.26
7.2.330.0100.01316.86
7.2.320.0090.01216.88
7.2.310.0060.01116.54
7.2.300.0110.00716.77
7.2.290.0100.00616.88
7.2.130.0030.01316.82
7.2.120.0150.00016.82
7.2.110.0130.01316.73
7.2.100.0000.01216.75
7.2.90.0120.00816.56
7.2.80.0140.01116.89
7.2.70.0210.00816.67
7.2.60.0130.00616.72
7.2.50.0080.01416.86
7.2.40.0200.01116.37
7.2.30.0140.00716.70
7.2.20.0070.01316.84
7.2.10.0130.00716.90
7.2.00.0030.01118.02
7.1.250.0130.01015.67
7.1.200.0000.00715.71
7.1.100.0000.01017.71
7.1.70.0070.00317.13
7.1.60.0040.02119.33
7.1.50.0120.00917.04
7.1.00.0030.07322.48
7.0.200.0110.00015.10
7.0.140.0030.07722.06
7.0.60.0100.07019.96
7.0.50.0000.04317.91
7.0.40.0030.09320.10
7.0.30.0170.05020.25
7.0.20.0270.08320.30
7.0.10.0030.04320.06
7.0.00.0030.08720.17
5.6.280.0070.07021.07
5.6.210.0130.07720.70
5.6.200.0030.05018.19
5.6.190.0070.08720.39
5.6.180.0030.05020.52
5.6.170.0270.07320.45
5.6.160.0200.07320.46
5.6.150.0070.08318.18
5.6.140.0030.04318.15
5.6.130.0070.08318.28
5.6.120.0070.04321.16
5.6.110.0070.07721.10
5.6.100.0170.07021.02
5.6.90.0100.03720.98
5.6.80.0100.08020.52
5.6.70.3030.03020.29
5.5.350.0170.05020.36
5.5.340.0100.08017.94
5.5.330.0000.04320.40
5.5.320.0300.04320.38
5.5.310.0200.04020.34
5.5.300.0030.08717.97
5.5.290.0170.05017.92
5.5.280.0100.08320.91
5.5.270.0070.08320.69
5.5.260.0070.08020.65
5.5.250.0170.07320.58
5.5.240.0170.08020.27
5.4.450.0230.05019.59
5.4.440.0330.05319.45
5.4.430.0170.05719.46
5.4.420.0170.06319.57
5.4.410.0230.05319.32
5.4.400.0300.05018.98
5.4.390.0230.05019.26
5.4.380.0230.05718.79
5.4.370.0330.04018.74
5.4.360.0230.05318.75
5.4.350.0370.07018.80
5.4.340.0230.05318.86
5.4.320.0080.03912.51
5.4.310.0090.04512.51
5.4.300.0110.03812.50
5.4.290.0070.04912.51
5.4.280.0090.03512.38
5.4.270.0060.03912.38
5.4.260.0100.04012.38
5.4.250.0050.04212.38
5.4.240.0050.04012.37
5.4.230.0090.03912.37
5.4.220.0040.04112.37
5.4.210.0130.06712.37
5.4.200.0230.08912.37
5.4.190.0160.06312.36
5.4.180.0140.07312.36
5.4.170.0200.07112.37
5.4.160.0140.06612.37
5.4.150.0130.06412.36
5.4.140.0100.05212.05
5.4.130.0030.04812.04
5.4.120.0170.05912.00
5.4.110.0150.08411.99
5.4.100.0110.05911.99
5.4.90.0140.07011.99
5.4.80.0160.06711.99
5.4.70.0080.05011.99
5.4.60.0130.04011.99
5.4.50.0100.04611.99
5.4.40.0070.05111.97
5.4.30.0130.04311.97
5.4.20.0050.04211.97
5.4.10.0070.03611.97
5.4.00.0080.03911.46
5.3.290.0050.04012.80
5.3.280.0100.05112.70
5.3.270.0090.05612.73
5.3.260.0120.06512.72
5.3.250.0100.04912.71
5.3.240.0090.03912.72
5.3.230.0080.04112.71
5.3.220.0090.03612.68
5.3.210.0110.03912.68
5.3.200.0120.03712.68
5.3.190.0070.03912.68
5.3.180.0070.04412.68
5.3.170.0050.03912.67
5.3.160.0060.03812.67
5.3.150.0080.03712.68
5.3.140.0060.03912.66
5.3.130.0100.05012.66
5.3.120.0090.05712.66
5.3.110.0130.05412.65
5.3.100.0100.04812.12
5.3.90.0160.04312.08
5.3.80.0050.03812.07
5.3.70.0070.03612.08
5.3.60.0070.03712.06
5.3.50.0070.04712.00
5.3.40.0100.05012.01
5.3.30.0130.03911.96
5.3.20.0080.04611.75
5.3.10.0110.04411.71
5.3.00.0140.04811.70
5.2.170.0090.0409.20
5.2.160.0070.0359.20
5.2.150.0040.0359.20
5.2.140.0070.0499.20
5.2.130.0080.0449.16
5.2.120.0050.0419.16
5.2.110.0090.0399.16
5.2.100.0120.0349.16
5.2.90.0070.0399.16
5.2.80.0120.0369.15
5.2.70.0100.0399.15
5.2.60.0120.0399.11
5.2.50.0100.0419.08
5.2.40.0100.0549.05
5.2.30.0090.0409.03
5.2.20.0100.0419.02
5.2.10.0060.0378.93
5.2.00.0080.0308.80
5.1.60.0070.0258.08
5.1.50.0100.0368.08
5.1.40.0070.0328.07
5.1.30.0060.0268.41
5.1.20.0070.0298.44
5.1.10.0090.0248.16
5.1.00.0050.0268.16
5.0.50.0060.0186.63
5.0.40.0040.0196.50
5.0.30.0030.0326.31
5.0.20.0010.0226.27
5.0.10.0050.0196.26
5.0.00.0020.0316.25
4.4.90.0020.0234.78
4.4.80.0030.0204.76
4.4.70.0040.0154.75
4.4.60.0030.0164.76
4.4.50.0020.0174.77
4.4.40.0030.0264.71
4.4.30.0040.0154.76
4.4.20.0060.0134.85
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0030.0164.67
4.3.100.0050.0144.66
4.3.90.0040.0144.64
4.3.80.0040.0244.58
4.3.70.0020.0164.63
4.3.60.0020.0164.63
4.3.50.0040.0154.63
4.3.40.0030.0254.54
4.3.30.0010.0183.30
4.3.20.0030.0163.29
4.3.10.0020.0163.25
4.3.00.0030.0237.82

preferences:
36.65 ms | 401 KiB | 5 Q