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); $fieldname = substr($fieldname, strpos($fieldname, "var", 1)); $key = substr($fieldname, 4, strpos($fieldname, "'") - 4); echo $fieldname; echo "x=" . $key; /* 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.0100.00618.30
8.3.50.0110.00722.04
8.3.40.0120.00318.72
8.3.30.0060.00918.93
8.3.20.0070.00720.21
8.3.10.0080.00023.61
8.3.00.0040.00419.25
8.2.180.0140.00718.29
8.2.170.0110.00722.96
8.2.160.0100.01320.21
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0000.00722.25
8.2.110.0090.00022.03
8.2.100.0070.00418.22
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0050.00319.89
8.2.30.0040.00418.07
8.2.20.0000.00817.64
8.2.10.0040.00418.03
8.2.00.0050.00217.62
8.1.280.0160.00325.92
8.1.270.0030.00623.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.92
8.1.230.0000.01119.11
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0000.00817.23
8.1.180.0000.01018.88
8.1.170.0070.00018.66
8.1.160.0070.00021.89
8.1.150.0100.00018.61
8.1.140.0000.00817.37
8.1.130.0030.00317.77
8.1.120.0000.00717.33
8.1.110.0080.00017.30
8.1.100.0000.00717.32
8.1.90.0000.00717.41
8.1.80.0000.00717.32
8.1.70.0000.00717.30
8.1.60.0030.00517.61
8.1.50.0040.00417.46
8.1.40.0040.00417.51
8.1.30.0040.00417.49
8.1.20.0000.00817.59
8.1.10.0070.00017.46
8.1.00.0030.00617.52
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0000.00718.48
8.0.270.0000.00717.28
8.0.260.0030.00317.29
8.0.250.0070.00016.83
8.0.240.0000.00816.98
8.0.230.0000.00717.04
8.0.220.0030.00316.88
8.0.210.0070.00016.88
8.0.200.0070.00016.94
8.0.190.0070.00016.94
8.0.180.0000.00816.85
8.0.170.0000.00816.98
8.0.160.0000.00716.83
8.0.150.0000.00716.88
8.0.140.0040.00416.75
8.0.130.0050.00213.41
8.0.120.0080.00016.86
8.0.110.0000.00716.86
8.0.100.0000.00816.77
8.0.90.0040.00416.91
8.0.80.0030.01216.79
8.0.70.0070.00016.77
8.0.60.0040.00416.81
8.0.50.0000.00716.91
8.0.30.0130.00516.96
8.0.20.0170.00817.40
8.0.10.0000.00816.89
8.0.00.0130.00716.58
7.4.330.0000.00415.00
7.4.320.0030.00316.58
7.4.300.0070.00016.45
7.4.290.0030.00316.54
7.4.280.0040.00716.41
7.4.270.0040.00416.53
7.4.260.0030.00316.38
7.4.250.0000.00716.43
7.4.240.0030.00316.58
7.4.230.0000.00716.64
7.4.220.0090.00916.43
7.4.210.0060.00716.52
7.4.200.0070.00016.30
7.4.190.0030.00316.44
7.4.160.0030.01716.23
7.4.150.0110.00717.40
7.4.140.0090.00917.86
7.4.130.0100.00716.39
7.4.120.0100.00716.48
7.4.110.0090.00916.31
7.4.100.0090.00916.43
7.4.90.0070.01016.44
7.4.80.0040.01419.39
7.4.70.0080.01316.38
7.4.60.0070.01016.37
7.4.50.0050.00316.25
7.4.40.0110.00616.55
7.4.30.0060.01016.46
7.4.10.0100.00714.88
7.4.00.0060.00814.86
7.3.330.0030.00313.19
7.3.320.0000.00713.13
7.3.310.0000.00716.16
7.3.300.0030.00316.20
7.3.290.0070.00716.33
7.3.280.0120.00716.28
7.3.270.0100.00717.40
7.3.260.0030.01316.33
7.3.250.0120.00616.42
7.3.240.0130.00316.19
7.3.230.0070.01016.43
7.3.210.0060.00916.41
7.3.200.0100.00719.39
7.3.190.0090.00916.39
7.3.180.0140.00716.42
7.3.170.0100.00716.53
7.3.160.0110.00816.45
7.3.120.0070.01114.64
7.3.110.0090.00914.89
7.3.100.0080.00714.68
7.3.90.0110.00514.63
7.3.80.0040.01114.96
7.3.70.0060.00814.69
7.3.60.0070.00514.60
7.3.50.0040.00814.67
7.3.40.0050.00714.74
7.3.30.0070.00914.60
7.3.20.0060.00616.42
7.3.10.0080.00816.67
7.3.00.0070.00716.53
7.2.330.0050.01316.36
7.2.320.0120.00316.46
7.2.310.0170.00016.53
7.2.300.0090.01316.56
7.2.290.0100.00616.73
7.2.250.0080.01114.96
7.2.240.0020.01514.88
7.2.230.0030.01215.01
7.2.220.0030.00915.03
7.2.210.0050.00815.22
7.2.200.0070.00614.72
7.2.190.0070.00914.66
7.2.180.0070.00614.85
7.2.170.0060.00514.72
7.2.160.0060.01015.03
7.2.150.0050.01216.94
7.2.140.0050.01216.99
7.2.130.0050.00816.90
7.2.120.0080.00516.59
7.2.110.0030.00917.00
7.2.100.0090.00616.95
7.2.90.0060.00916.90
7.2.80.0090.00716.90
7.2.70.0070.00916.91
7.2.60.0080.00916.60
7.2.50.0090.00717.00
7.2.40.0050.00816.73
7.2.30.0080.00717.05
7.2.20.0080.00516.88
7.2.10.0080.00916.92
7.2.00.0050.01016.95
7.1.330.0060.01015.80
7.1.320.0060.00915.68
7.1.310.0060.00815.75
7.1.300.0030.01215.65
7.1.290.0050.00515.70
7.1.280.0050.00715.89
7.1.270.0050.00715.69
7.1.260.0020.01515.77
7.1.250.0030.00915.88
7.1.240.0060.01215.67
7.1.230.0090.00615.95
7.1.220.0070.00315.73
7.1.210.0090.00615.58
7.1.200.0100.00315.70
7.1.190.0070.00415.14
7.1.180.0070.00715.44
7.1.170.0000.01515.71
7.1.160.0030.00915.74
7.1.150.0100.00315.60
7.1.140.0030.01015.41
7.1.130.0070.00715.75
7.1.120.0030.00615.62
7.1.110.0100.00715.85
7.1.100.0040.00715.66
7.1.90.0100.00315.58
7.1.80.0110.00415.80
7.1.70.0020.01116.52
7.1.60.0020.01517.72
7.1.50.0140.00916.09
7.1.40.0000.00915.77
7.1.30.0060.00315.73
7.1.20.0100.00315.73
7.1.10.0130.00015.39
7.1.00.0050.04219.09
7.0.330.0040.00715.36
7.0.320.0040.00415.40
7.0.310.0030.01015.48
7.0.300.0000.01415.26
7.0.290.0030.01014.82
7.0.280.0070.00715.47
7.0.270.0070.01015.23
7.0.260.0130.00315.34
7.0.250.0000.00815.61
7.0.240.0030.00615.22
7.0.230.0120.00615.33
7.0.220.0030.01315.50
7.0.210.0080.00615.23
7.0.200.0260.00414.98
7.0.190.0070.00715.31
7.0.180.0030.01015.62
7.0.170.0050.00315.56
7.0.160.0030.00614.88
7.0.150.0030.00515.56
7.0.140.0000.04318.75
7.0.130.0030.01315.50
7.0.120.0000.01115.06
7.0.110.0030.01315.34
7.0.100.0040.00815.42
7.0.90.0090.00015.09
7.0.80.0030.01215.12
7.0.70.0030.00915.45
7.0.60.0030.02517.46
7.0.50.0070.02416.72
7.0.40.0130.03816.70
7.0.30.0120.02516.52
7.0.20.0160.02316.64
7.0.10.0080.04216.74
7.0.00.0100.02216.56
5.6.400.0030.00714.36
5.6.390.0000.01214.38
5.6.380.0080.00714.57
5.6.370.0090.00614.36
5.6.360.0060.00914.36
5.6.350.0070.00714.42
5.6.340.0140.00014.17
5.6.330.0000.01614.16
5.6.320.0040.00814.04
5.6.310.0060.00313.92
5.6.300.0060.00614.21
5.6.290.0040.00714.31
5.6.280.0090.04117.64
5.6.270.0090.00914.20
5.6.260.0040.00414.50
5.6.250.0000.01414.01
5.6.240.0060.00614.14
5.6.230.0110.00314.53
5.6.220.0100.00314.05
5.6.210.0070.02517.42
5.6.200.0110.03616.23
5.6.190.0050.04617.25
5.6.180.0270.03717.23
5.6.170.0130.03617.32
5.6.160.0080.03217.33
5.6.150.0030.02916.22
5.6.140.0100.04016.32
5.6.130.0130.03716.17
5.6.120.0060.04717.51
5.6.110.0020.02917.66
5.6.100.0040.04717.60
5.6.90.0070.04117.61
5.6.80.0030.02817.29
5.6.70.0060.00613.99
5.6.60.0000.01414.33
5.6.50.0000.01414.15
5.6.40.0030.00714.14
5.6.30.0030.01013.95
5.6.20.0030.01414.25
5.6.10.0030.01014.35
5.6.00.0000.01414.36
5.5.380.0070.00713.87
5.5.370.0040.01214.07
5.5.360.0040.00814.34
5.5.350.0120.04517.23
5.5.340.0000.02915.94
5.5.330.0080.04717.30
5.5.320.0120.03117.16
5.5.310.0120.02417.04
5.5.300.0040.03616.18
5.5.290.0030.04915.90
5.5.280.0080.03817.44
5.5.270.0090.03917.40
5.5.260.0060.03517.28
5.5.250.0070.02817.32
5.5.240.0080.04017.04
5.5.230.0090.00614.20
5.5.220.0050.00513.84
5.5.210.0070.00714.23
5.5.200.0030.00614.20
5.5.190.0110.00013.83
5.5.180.0030.00914.13
5.5.170.0030.01314.09
5.5.160.0060.00314.26
5.5.150.0050.00514.25
5.5.140.0090.00013.58
5.5.130.0070.01014.08
5.5.120.0090.00013.77
5.5.110.0080.00014.07
5.5.100.0120.00014.06
5.5.90.0100.00314.05
5.5.80.0100.00314.25
5.5.70.0040.01113.72
5.5.60.0030.00714.10
5.5.50.0040.01114.05
5.5.40.0070.00313.89
5.5.30.0080.00813.74
5.5.20.0030.00914.44
5.5.10.0060.00614.39
5.5.00.0100.00313.91
5.4.450.0340.03215.38
5.4.440.0440.03815.14
5.4.430.0400.03315.14
5.4.420.0340.04015.36
5.4.410.0280.04015.07
5.4.400.0050.04414.97
5.4.390.0120.03015.04
5.4.380.0280.03514.84
5.4.370.0150.03014.78
5.4.360.0130.03214.79
5.4.350.0170.03214.77
5.4.340.0170.03114.54
5.4.330.0060.00611.04
5.4.320.0060.01911.72
5.4.310.0060.02711.52
5.4.300.0040.02211.60
5.4.290.0090.03811.69
5.4.280.0120.04511.78
5.4.270.0070.02611.59
5.4.260.0060.02711.60
5.4.250.0090.03611.67
5.4.240.0140.04011.61
5.4.230.0110.02611.69
5.4.220.0070.02811.66
5.4.210.0150.03011.57
5.4.200.0050.04211.78
5.4.190.0050.04011.68
5.4.180.0050.03311.65
5.4.170.0050.04511.61
5.4.160.0080.03711.59
5.4.150.0070.02811.67
5.4.140.0060.03111.50
5.4.130.0040.04411.45
5.4.120.0070.04211.45
5.4.110.0060.03611.42
5.4.100.0050.03011.38
5.4.90.0100.02811.30
5.4.80.0090.01911.38
5.4.70.0090.02611.32
5.4.60.0060.04111.44
5.4.50.0100.03411.33
5.4.40.0040.02811.25
5.4.30.0050.02911.44
5.4.20.0060.02611.45
5.4.10.0040.03011.37
5.4.00.0060.02711.11
5.3.290.0060.02111.67
5.3.280.0190.04611.51
5.3.270.0070.03211.52
5.3.260.0050.02511.52
5.3.250.0040.02711.63
5.3.240.0070.02511.52
5.3.230.0040.02311.51
5.3.220.0070.02311.50
5.3.210.0070.02211.51
5.3.200.0070.02111.50
5.3.190.0080.02211.54
5.3.180.0050.02711.56
5.3.170.0070.02911.58
5.3.160.0050.02811.58
5.3.150.0080.02911.60
5.3.140.0050.02611.49
5.3.130.0080.03211.49
5.3.120.0070.03111.54
5.3.110.0060.02811.49
5.3.100.0090.03511.26
5.3.90.0070.03311.30
5.3.80.0110.04311.24
5.3.70.0070.03311.20
5.3.60.0060.03711.28
5.3.50.0080.03111.16
5.3.40.0160.03811.21
5.3.30.0100.03511.21
5.3.20.0080.02711.03
5.3.10.0090.03811.00
5.3.00.0120.03111.00
5.2.170.0100.0509.18
5.2.160.0080.0499.18
5.2.150.0170.0379.18
5.2.140.0050.0369.18
5.2.130.0120.0419.14
5.2.120.0100.0489.14
5.2.110.0050.0429.14
5.2.100.0060.0329.14
5.2.90.0050.0359.14
5.2.80.0100.0439.13
5.2.70.0140.0429.14
5.2.60.0160.0469.09
5.2.50.0120.0629.06
5.2.40.0060.0389.04
5.2.30.0140.0499.01
5.2.20.0080.0379.00
5.2.10.0120.0418.92
5.2.00.0050.0418.78
5.1.60.0060.0278.07
5.1.50.0060.0318.06
5.1.40.0060.0418.04
5.1.30.0050.0388.39
5.1.20.0060.0298.41
5.1.10.0090.0448.14
5.1.00.0080.0448.14
5.0.50.0060.0296.61
5.0.40.0070.0276.48
5.0.30.0060.0446.29
5.0.20.0090.0306.26
5.0.10.0060.0316.24
5.0.00.0050.0356.23
4.4.90.0070.0174.78
4.4.80.0040.0204.76
4.4.70.0060.0164.75
4.4.60.0060.0324.76
4.4.50.0150.0294.77
4.4.40.0050.0314.71
4.4.30.0040.0224.76
4.4.20.0040.0154.85
4.4.10.0050.0224.85
4.4.00.0060.0344.76
4.3.110.0060.0294.67
4.3.100.0040.0234.67
4.3.90.0070.0194.63
4.3.80.0040.0374.59
4.3.70.0080.0214.63
4.3.60.0030.0164.63
4.3.50.0010.0214.63
4.3.40.0040.0374.54
4.3.30.0010.0183.29
4.3.20.0030.0173.27
4.3.10.0050.0183.22
4.3.00.0030.01310.55

preferences:
40.81 ms | 401 KiB | 5 Q