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(985,md5(""))."\n"; echo showDataValueMessage("2b9",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.70.0110.00418.35
8.3.60.0110.00416.63
8.3.50.0120.00522.04
8.3.40.0060.00918.68
8.3.30.0040.01119.23
8.3.20.0090.00020.25
8.3.10.0080.00023.52
8.3.00.0090.00019.38
8.2.180.0120.00316.50
8.2.170.0000.01522.96
8.2.160.0140.00020.35
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0060.00926.16
8.2.120.0040.00422.44
8.2.110.0030.00622.31
8.2.100.0110.00017.97
8.2.90.0050.00319.22
8.2.80.0000.00918.05
8.2.70.0040.00417.50
8.2.60.0080.00018.03
8.2.50.0000.00918.07
8.2.40.0030.00618.22
8.2.30.0000.00718.11
8.2.20.0070.00017.66
8.2.10.0040.00418.12
8.2.00.0000.00817.63
8.1.280.0110.00425.92
8.1.270.0090.00023.87
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00623.96
8.1.230.0040.00819.01
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0030.00517.39
8.1.180.0030.00518.10
8.1.170.0000.00718.53
8.1.160.0030.00622.07
8.1.150.0040.00418.67
8.1.140.0030.00517.39
8.1.130.0070.00017.83
8.1.120.0000.00717.52
8.1.110.0040.00417.52
8.1.100.0000.00817.53
8.1.90.0040.00417.39
8.1.80.0040.00417.51
8.1.70.0030.00317.47
8.1.60.0080.00017.58
8.1.50.0080.00017.42
8.1.40.0000.00717.46
8.1.30.0040.00417.60
8.1.20.0000.00917.56
8.1.10.0040.00417.47
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0050.00217.16
8.0.280.0000.00718.33
8.0.270.0040.00417.30
8.0.260.0000.00617.27
8.0.250.0070.00016.97
8.0.240.0070.00316.98
8.0.230.0050.00517.01
8.0.220.0000.00816.89
8.0.210.0030.00316.95
8.0.200.0030.00316.97
8.0.190.0000.00716.84
8.0.180.0000.00716.83
8.0.170.0040.00416.95
8.0.160.0040.00416.89
8.0.150.0040.00416.75
8.0.140.0040.00416.93
8.0.130.0000.00613.25
8.0.120.0050.00316.88
8.0.110.0000.00716.90
8.0.100.0040.00416.93
8.0.90.0040.00416.69
8.0.80.0130.00716.89
8.0.70.0000.00816.83
8.0.60.0000.00816.89
8.0.50.0040.00416.96
8.0.30.0110.00816.83
8.0.20.0060.01217.41
8.0.10.0040.00416.94
8.0.00.0100.00816.79
7.4.330.0050.00015.09
7.4.320.0030.00716.55
7.4.300.0000.00616.64
7.4.290.0050.00216.61
7.4.280.0060.00316.56
7.4.270.0000.00716.58
7.4.260.0000.00716.62
7.4.250.0000.00716.34
7.4.240.0040.00416.52
7.4.230.0000.00716.59
7.4.220.0070.01116.69
7.4.210.0070.01016.61
7.4.200.0030.00316.27
7.4.190.0000.00816.68
7.4.160.0090.01216.66
7.4.150.0160.01017.40
7.4.140.0140.00317.86
7.4.130.0080.01016.55
7.4.120.0090.00716.70
7.4.110.0170.00716.43
7.4.100.0120.01216.60
7.4.90.0100.00716.63
7.4.80.0040.01619.39
7.4.70.0110.00816.57
7.4.60.0100.00716.30
7.4.50.0040.00016.43
7.4.40.0070.00722.77
7.4.30.0070.00716.70
7.4.00.0090.00614.91
7.3.330.0030.00313.25
7.3.320.0000.00513.21
7.3.310.0000.00716.25
7.3.300.0030.00316.39
7.3.290.0120.00816.44
7.3.280.0060.00916.37
7.3.270.0030.01317.40
7.3.260.0120.00616.43
7.3.250.0150.00816.53
7.3.240.0040.01216.39
7.3.230.0070.01016.58
7.3.210.0000.01716.33
7.3.200.0110.00619.39
7.3.190.0100.01016.61
7.3.180.0060.01016.57
7.3.170.0100.00616.40
7.3.160.0120.00416.41
7.3.120.0030.01314.81
7.2.330.0080.01116.54
7.2.320.0130.00316.76
7.2.310.0100.00716.55
7.2.300.0190.00616.83
7.2.290.0060.01016.67
7.2.60.0090.00616.96
7.2.00.0030.00919.58
7.1.200.0060.00615.85
7.1.100.0040.00718.01
7.1.70.0060.00616.94
7.1.60.0070.01719.33
7.1.50.0270.00934.48
7.1.00.0000.08022.40
7.0.200.0040.00416.86
7.0.140.0030.07322.09
7.0.60.0070.08319.91
7.0.50.0030.05017.89
7.0.40.0130.09320.09
7.0.30.0270.07020.14
7.0.20.0230.08020.25
7.0.10.0070.09020.12
7.0.00.0070.08720.22
5.6.280.0000.07021.04
5.6.210.0130.06720.51
5.6.200.0030.04318.29
5.6.190.0100.05320.57
5.6.180.0300.04320.61
5.6.170.0270.08320.40
5.6.160.0000.04720.50
5.6.150.0130.06718.17
5.6.140.0000.06018.28
5.6.130.0070.05018.24
5.6.120.0070.04721.00
5.6.110.0170.05021.02
5.6.100.0030.04321.00
5.6.90.0030.04020.89
5.6.80.0030.04020.53
5.5.350.0030.08020.33
5.5.340.0100.03317.98
5.5.330.0070.08020.31
5.5.320.0030.04320.35
5.5.310.0300.04020.19
5.5.300.0070.07717.93
5.5.290.0000.06717.97
5.5.280.0030.04720.79
5.5.270.0070.04020.88
5.5.260.0100.06320.77
5.5.250.0130.04020.50
5.5.240.4270.04320.08
5.4.450.0470.06019.60
5.4.440.0730.05319.17
5.4.430.0570.04019.70
5.4.420.0770.06719.16
5.4.410.0730.06719.45
5.4.400.1300.05719.31
5.4.390.0600.06019.01
5.4.380.0330.06018.61
5.4.370.0470.06018.46
5.4.360.0430.07018.75
5.4.350.0530.05718.80
5.4.340.0530.06318.63
5.4.320.0060.03612.51
5.4.310.0100.05112.50
5.4.300.0060.03712.51
5.4.290.0120.05012.51
5.4.280.0130.04512.38
5.4.270.0110.04612.38
5.4.260.0180.06212.38
5.4.250.0090.05812.38
5.4.240.0180.04712.38
5.4.230.0170.05012.37
5.4.220.0100.05312.37
5.4.210.0070.05412.37
5.4.200.0120.05912.36
5.4.190.0090.04912.36
5.4.180.0080.05612.37
5.4.170.0080.05512.38
5.4.160.0110.04912.37
5.4.150.0110.04912.36
5.4.140.0120.05012.04
5.4.130.0110.04812.04
5.4.120.0100.05012.00
5.4.110.0120.04811.99
5.4.100.0140.04311.99
5.4.90.0100.05411.99
5.4.80.0100.05111.99
5.4.70.0120.04511.98
5.4.60.0150.04411.99
5.4.50.0130.06711.98
5.4.40.0090.05111.98
5.4.30.0100.05011.97
5.4.20.0090.05111.97
5.4.10.0090.05011.97
5.4.00.0070.05211.46
5.3.290.0070.03912.80
5.3.280.0090.05412.71
5.3.270.0130.05412.73
5.3.260.0130.05112.72
5.3.250.0080.05312.71
5.3.240.0110.05112.71
5.3.230.0090.05212.71
5.3.220.0140.04712.68
5.3.210.0070.05612.68
5.3.200.0100.04912.68
5.3.190.0160.05512.68
5.3.180.0130.05612.67
5.3.170.0110.05612.67
5.3.160.0120.05112.67
5.3.150.0140.05212.67
5.3.140.0080.06012.66
5.3.130.0280.09012.66
5.3.120.0090.06112.66
5.3.110.0140.05812.66
5.3.100.0130.05112.12
5.3.90.0140.04812.08
5.3.80.0120.05112.07
5.3.70.0130.04712.07
5.3.60.0150.04812.06
5.3.50.0130.05012.00
5.3.40.0130.04812.00
5.3.30.0250.09911.97
5.3.20.0160.07211.75
5.3.10.0120.05511.71
5.3.00.0110.05311.70
5.2.170.0100.0449.20
5.2.160.0150.0389.20
5.2.150.0120.0499.20
5.2.140.0130.0439.20
5.2.130.0080.0469.15
5.2.120.0070.0469.16
5.2.110.0070.0419.16
5.2.100.0130.0419.16
5.2.90.0080.0419.16
5.2.80.0040.0469.15
5.2.70.0070.0429.15
5.2.60.0090.0419.11
5.2.50.0060.0449.08
5.2.40.0070.0399.05
5.2.30.0110.0409.03
5.2.20.0140.0359.02
5.2.10.0070.0428.93
5.2.00.0110.0458.80
5.1.60.0050.0388.08
5.1.50.0100.0338.08
5.1.40.0050.0388.07
5.1.30.0120.0368.41
5.1.20.0110.0388.43
5.1.10.0040.0428.16
5.1.00.0050.0418.16
5.0.50.0050.0316.63
5.0.40.0080.0246.50
5.0.30.0050.0456.31
5.0.20.0030.0336.28
5.0.10.0050.0326.26
5.0.00.0060.0436.25
4.4.90.0060.0214.78
4.4.80.0060.0214.75
4.4.70.0070.0214.75
4.4.60.0050.0224.75
4.4.50.0090.0204.77
4.4.40.0050.0344.71
4.4.30.0070.0174.76
4.4.20.0110.0244.85
4.4.10.0160.0114.85
4.4.00.0060.0334.76
4.3.110.0070.0224.67
4.3.100.0050.0224.67
4.3.90.0060.0184.64
4.3.80.0040.0304.58
4.3.70.0040.0214.63
4.3.60.0100.0144.63
4.3.50.0080.0184.63
4.3.40.0060.0274.54
4.3.30.0080.0173.31
4.3.20.0050.0203.29
4.3.10.0020.0243.25
4.3.00.0100.0208.80

preferences:
40.9 ms | 401 KiB | 5 Q