3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fieldname = "<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'mailto:'; var suffix = ''; var attribs = ''; var path = 'hr' 'ef' '='; var addy22804 = 'justinleegould' '@'; addy22804 = addy22804 'gmail' '.' 'com'; document.write( '<a ' path '\'' prefix addy22804 suffix '\'' attribs '>' ); document.write( addy22804 ); document.write( '<\/a>' ); //--> </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This e-mail address is being protected from spambots. You need JavaScript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>"; $start = strpos($fieldname, "var path = 'hr'"); $end = strpos($fieldname, "document.write"); $fieldname = substr($fieldname, $start, $end - $start); echo $fieldname; /* strrpos — Find the position of the last occurrence of a substring in a string int strrpos ( string $haystack , string $needle [, int $offset = 0 ] ) Find the numeric position of the last occurrence of needle in the haystack string. strpos — Find the position of the first occurrence of a substring in a string mixed strpos ( string $haystack , mixed $needle [, int $offset = 0 ] ) string substr ( string $string , int $start [, int $length ] ) Returns the portion of string specified by the start and length parameters. */ ?>

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.0000.01518.18
8.3.50.0040.01121.97
8.3.40.0060.00918.71
8.3.30.0130.00318.91
8.3.20.0070.00020.30
8.3.10.0040.00423.61
8.3.00.0050.00319.26
8.2.180.0100.00616.38
8.2.170.0040.01422.96
8.2.160.0130.00320.44
8.2.150.0080.00024.18
8.2.140.0110.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.16
8.2.110.0090.00021.93
8.2.100.0090.00317.91
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0050.00317.49
8.2.60.0030.00517.92
8.2.50.0030.00618.07
8.2.40.0080.00019.82
8.2.30.0030.00619.85
8.2.20.0050.00317.74
8.2.10.0000.00819.84
8.2.00.0050.00217.81
8.1.280.0070.01425.92
8.1.270.0040.00424.02
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.91
8.1.230.0000.01119.10
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0080.00417.17
8.1.180.0030.00618.10
8.1.170.0040.00418.60
8.1.160.0030.00621.87
8.1.150.0060.00318.57
8.1.140.0000.00817.27
8.1.130.0000.00717.84
8.1.120.0030.00417.47
8.1.110.0000.00817.43
8.1.100.0070.00017.39
8.1.90.0050.00217.33
8.1.80.0030.00517.41
8.1.70.0000.00717.38
8.1.60.0040.00417.60
8.1.50.0000.00817.52
8.1.40.0030.00617.41
8.1.30.0040.00417.57
8.1.20.0040.00417.61
8.1.10.0000.00717.49
8.1.00.0040.00417.54
8.0.300.0040.00420.61
8.0.290.0000.00717.18
8.0.280.0000.00718.43
8.0.270.0000.00717.23
8.0.260.0030.00317.30
8.0.250.0060.00016.96
8.0.240.0080.00016.91
8.0.230.0000.00716.73
8.0.220.0030.00316.82
8.0.210.0030.00316.79
8.0.200.0000.00616.93
8.0.190.0000.00816.87
8.0.180.0000.00816.75
8.0.170.0070.00016.78
8.0.160.0040.00416.90
8.0.150.0030.00316.66
8.0.140.0060.00316.72
8.0.130.0050.00313.23
8.0.120.0000.00816.73
8.0.110.0050.00316.86
8.0.100.0070.00016.71
8.0.90.0000.00716.70
8.0.80.0040.01116.80
8.0.70.0000.00716.63
8.0.60.0040.00416.74
8.0.50.0030.00516.84
8.0.30.0080.01317.02
8.0.20.0120.01617.40
8.0.10.0020.00516.80
8.0.00.0100.01016.71
7.4.330.0020.00215.00
7.4.320.0030.00316.54
7.4.300.0060.00016.39
7.4.290.0060.00016.59
7.4.280.0070.00316.53
7.4.270.0070.00016.54
7.4.260.0030.00316.36
7.4.250.0030.00516.41
7.4.240.0020.00616.55
7.4.230.0030.00316.62
7.4.220.0180.00916.41
7.4.210.0080.00816.49
7.4.200.0000.00716.53
7.4.190.0040.00416.54
7.4.160.0060.01116.24
7.4.150.0130.00917.40
7.4.140.0080.01417.86
7.4.130.0110.00716.54
7.4.120.0110.00616.44
7.4.110.0130.00316.40
7.4.100.0070.01116.58
7.4.90.0030.01316.30
7.4.80.0130.00619.39
7.4.70.0170.00616.45
7.4.60.0110.00616.33
7.4.50.0040.00016.50
7.4.40.0100.01016.36
7.4.30.0060.00916.55
7.4.00.0060.00914.74
7.3.330.0000.00813.08
7.3.320.0060.00312.93
7.3.310.0030.00316.26
7.3.300.0040.00416.24
7.3.290.0080.00816.23
7.3.280.0070.00916.15
7.3.270.0070.01017.40
7.3.260.0160.00316.20
7.3.250.0060.01416.38
7.3.240.0160.00316.25
7.3.230.0070.01416.39
7.3.210.0030.01416.43
7.3.200.0090.01419.39
7.3.190.0070.01316.43
7.3.180.0130.00316.50
7.3.170.0000.01916.27
7.3.160.0050.01016.35
7.3.120.0080.00614.57
7.3.10.0060.00916.55
7.3.00.0100.00716.28
7.2.330.0110.00716.66
7.2.320.0030.01316.53
7.2.310.0070.01016.49
7.2.300.0000.01716.34
7.2.290.0130.00316.51
7.2.130.0100.00317.00
7.2.120.0040.01116.77
7.2.110.0030.01016.50
7.2.100.0150.00016.91
7.2.90.0030.00616.80
7.2.80.0000.01516.60
7.2.70.0070.01016.90
7.2.60.0140.00016.79
7.2.50.0070.00716.57
7.2.40.0000.00816.83
7.2.30.0060.00616.97
7.2.20.0080.00316.65
7.2.10.0050.00617.02
7.2.00.0030.00818.01
7.1.250.0040.00815.89
7.1.100.0000.01117.99
7.1.70.0000.01116.87
7.1.60.0060.01919.46
7.1.50.0040.00816.61
7.1.00.0030.07022.41
7.0.200.0200.00714.70
7.0.140.0030.07322.04
7.0.60.0100.08019.86
7.0.50.0100.07317.89
7.0.40.0130.07720.19
7.0.30.0200.06320.02
7.0.20.0300.07320.18
7.0.10.0030.05320.04
7.0.00.0170.07720.00
5.6.210.0070.08020.71
5.6.200.0030.08318.21
5.6.190.0070.08320.41
5.6.180.0430.05320.76
5.6.170.0300.07720.61
5.6.160.0000.05320.57
5.6.150.0070.04318.23
5.6.140.0100.07018.21
5.6.130.0000.04318.23
5.6.120.0070.05320.98
5.6.110.0170.05320.97
5.6.100.0170.06720.96
5.6.90.0100.07020.98
5.6.80.0170.07020.32
5.5.350.0270.08320.42
5.5.340.0100.08018.04
5.5.330.0170.07720.48
5.5.320.0130.08320.30
5.5.310.0100.05020.26
5.5.300.0070.07318.02
5.5.290.0030.05018.01
5.5.280.0000.09320.86
5.5.270.0130.06020.85
5.5.260.0100.06320.88
5.5.250.0000.06020.57
5.5.240.0070.07020.18
5.4.450.0130.05319.57
5.4.440.0700.07719.50
5.4.430.0670.05019.56
5.4.420.0630.06719.09
5.4.410.0070.05719.52
5.4.400.0670.04718.80
5.4.390.0570.06719.31
5.4.380.0300.06018.63
5.4.370.0370.06018.68
5.4.360.0330.05718.52
5.4.350.0270.05018.50
5.4.340.0330.04718.57
5.4.320.0070.03512.45
5.4.310.0060.03812.45
5.4.300.0060.03712.45
5.4.290.0060.04212.43
5.4.280.0110.03812.33
5.4.270.0170.06512.33
5.4.260.0110.04012.33
5.4.250.0090.04312.33
5.4.240.0080.03712.33
5.4.230.0060.04012.32
5.4.220.0120.03912.32
5.4.210.0110.05712.32
5.4.200.0080.03712.32
5.4.190.0080.03512.32
5.4.180.0100.03412.32
5.4.170.0090.03512.33
5.4.160.0090.03312.32
5.4.150.0090.04112.32
5.4.140.0090.06312.00
5.4.130.0070.04111.99
5.4.120.0060.04511.95
5.4.110.0060.03611.95
5.4.100.0060.03611.95
5.4.90.0080.03711.95
5.4.80.0080.03811.95
5.4.70.0060.03511.94
5.4.60.0090.04311.95
5.4.50.0050.04011.94
5.4.40.0030.03911.93
5.4.30.0080.03411.93
5.4.20.0090.03911.93
5.4.10.0110.03211.93
5.4.00.0030.04111.42
5.3.290.0060.04012.80
5.3.280.0060.03712.71
5.3.270.0070.03912.73
5.3.260.0060.05812.72
5.3.250.0080.05412.72
5.3.240.0080.03712.72
5.3.230.0070.03912.71
5.3.220.0100.05312.68
5.3.210.0090.05412.68
5.3.200.0060.05312.68
5.3.190.0060.04612.68
5.3.180.0060.04112.68
5.3.170.0050.04012.66
5.3.160.0040.04012.67
5.3.150.0100.05212.67
5.3.140.0090.04912.66
5.3.130.0200.06412.66
5.3.120.0100.05312.65
5.3.110.0110.06712.65
5.3.100.0120.04712.12
5.3.90.0080.06212.09
5.3.80.0070.04412.07
5.3.70.0090.04912.07
5.3.60.0080.04212.06
5.3.50.0080.04312.00
5.3.40.0060.03712.00
5.3.30.0050.03811.95
5.3.20.0070.05311.72
5.3.10.0110.07411.69
5.3.00.0110.05611.68
5.2.170.0270.0839.19
5.2.160.0120.0709.18
5.2.150.0110.0409.19
5.2.140.0180.0449.18
5.2.130.0050.0379.14
5.2.120.0070.0319.14
5.2.110.0110.0419.14
5.2.100.0150.0339.14
5.2.90.0110.0369.13
5.2.80.0080.0329.14
5.2.70.0050.0399.13
5.2.60.0160.0769.09
5.2.50.0060.0369.06
5.2.40.0080.0359.04
5.2.30.0090.0459.01
5.2.20.0070.0519.00
5.2.10.0110.0508.92
5.2.00.0100.0468.78
5.1.60.0070.0348.07
5.1.50.0090.0548.07
5.1.40.0070.0358.04
5.1.30.0080.0408.39
5.1.20.0170.0678.41
5.1.10.0070.0408.14
5.1.00.0160.0328.14
5.0.50.0040.0226.62
5.0.40.0040.0206.48
5.0.30.0050.0316.29
5.0.20.0060.0186.26
5.0.10.0050.0206.24
5.0.00.0050.0336.23
4.4.90.0100.0414.77
4.4.80.0090.0494.76
4.4.70.0050.0184.76
4.4.60.0040.0204.76
4.4.50.0050.0144.77
4.4.40.0020.0284.71
4.4.30.0030.0164.76
4.4.20.0040.0154.85
4.4.10.0040.0154.85
4.4.00.0050.0244.76
4.3.110.0030.0184.66
4.3.100.0130.0444.67
4.3.90.0050.0144.63
4.3.80.0030.0274.59
4.3.70.0030.0214.63
4.3.60.0030.0154.63
4.3.50.0020.0174.63
4.3.40.0020.0254.54
4.3.30.0030.0163.29
4.3.20.0020.0173.26
4.3.10.0020.0163.22
4.3.00.0230.03310.55

preferences:
39.09 ms | 401 KiB | 5 Q