3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$search = htmlentities($_GET['search']); $x="time();#apple;||/e\0"; $search=htmlentities($x); echo $search; echo "\n"; if (strpos($search, 'apple') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "apple"); }elseif (strpos($search, 'orange') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "orange"); }elseif (strpos($search, 'banana') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "banana"); }elseif (strpos($search, 'kiwi') !== false){ echo preg_replace("/".$search."/", $search." <img src='".$search.".png'>", "kiwi"); }else echo "Please search for apple, orange, banana, or kiwi."; #http://lists.webappsec.org/pipermail/websecurity_lists.webappsec.org/2011-July/007960.html #http://ha.xxor.se/2011/06/null-byte-injection-in-pregreplace.html #http://www.enigmagroup.org/missions/basics/auditing/12/index.php?search=phpinfo();%23|apple/e%00

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.0120.01218.30
8.3.50.0160.00521.14
8.3.40.0060.00918.67
8.3.30.0150.00018.75
8.3.20.0100.00720.16
8.3.10.0070.00022.08
8.3.00.0110.00017.80
8.2.180.0120.00916.50
8.2.170.0170.00322.96
8.2.160.0040.01120.55
8.2.150.0040.00424.18
8.2.140.0140.01124.66
8.2.130.0040.00426.16
8.2.120.0050.00321.05
8.2.110.0060.00320.43
8.2.100.0090.00317.63
8.2.90.0040.00419.18
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00017.80
8.2.50.0050.00518.07
8.2.40.0080.00021.02
8.2.30.0060.00319.75
8.2.20.0000.00717.73
8.2.10.0000.00818.16
8.2.00.0040.00418.04
8.1.280.0100.00725.92
8.1.270.0040.00420.20
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0030.00722.24
8.1.230.0060.00617.42
8.1.220.0050.00317.80
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0000.00818.71
8.1.160.0070.00021.93
8.1.150.0020.00518.90
8.1.140.0030.00517.46
8.1.130.0000.00817.63
8.1.120.0050.00217.36
8.1.110.0040.00417.34
8.1.100.0000.00817.37
8.1.90.0040.00417.48
8.1.80.0000.00717.34
8.1.70.0000.00717.38
8.1.60.0060.00317.64
8.1.50.0000.00917.54
8.1.40.0000.00817.56
8.1.30.0040.00417.58
8.1.20.0040.00417.71
8.1.10.0040.00417.51
8.1.00.0000.00717.45
8.0.300.0040.00418.77
8.0.290.0020.00516.75
8.0.280.0030.00318.52
8.0.270.0000.00717.32
8.0.260.0030.00317.27
8.0.250.0040.00416.96
8.0.240.0000.00816.91
8.0.230.0030.00317.00
8.0.220.0070.00017.01
8.0.210.0030.00616.96
8.0.200.0030.00317.04
8.0.190.0000.00816.96
8.0.180.0000.00816.92
8.0.170.0000.00816.86
8.0.160.0040.00417.02
8.0.150.0070.00016.93
8.0.140.0050.00216.80
8.0.130.0050.00013.39
8.0.120.0000.00817.03
8.0.110.0040.00416.98
8.0.100.0030.00517.00
8.0.90.0040.00416.80
8.0.80.0040.01117.03
8.0.70.0080.00017.07
8.0.60.0000.00716.96
8.0.50.0040.00416.85
8.0.30.0150.00517.11
8.0.20.0120.00717.40
8.0.10.0040.00416.99
8.0.00.0070.01016.81
7.4.330.0050.00015.08
7.4.320.0050.00216.44
7.4.300.0000.00716.61
7.4.290.0030.00316.64
7.4.280.0000.00816.62
7.4.270.0000.00716.45
7.4.260.0030.00616.56
7.4.250.0040.00416.63
7.4.240.0000.00716.58
7.4.230.0000.00716.50
7.4.220.0050.01416.52
7.4.210.0130.00316.59
7.4.200.0040.00416.33
7.4.160.0100.01016.41
7.4.150.0110.00717.40
7.4.140.0060.01217.86
7.4.130.0070.01016.53
7.4.120.0090.00916.54
7.4.110.0090.00916.62
7.4.100.0220.00016.55
7.4.90.0170.00016.55
7.4.80.0070.01019.39
7.4.70.0080.00816.66
7.4.60.0140.00316.62
7.4.50.0040.00416.46
7.4.40.0030.01316.52
7.4.30.0120.00616.42
7.4.00.0110.00614.92
7.3.330.0000.00613.21
7.3.320.0050.00013.19
7.3.310.0070.00016.31
7.3.300.0070.00016.33
7.3.290.0140.00616.34
7.3.280.0090.00816.37
7.3.270.0100.01317.40
7.3.260.0100.00716.79
7.3.250.0080.01016.42
7.3.240.0130.00316.23
7.3.230.0060.01316.67
7.3.210.0160.00316.23
7.3.200.0110.01119.39
7.3.190.0080.00816.39
7.3.180.0060.01216.40
7.3.170.0100.00716.42
7.3.160.0060.01116.29
7.3.120.0030.01214.82
7.3.110.0100.01014.78
7.3.100.0060.00915.08
7.3.90.0090.00614.75
7.3.80.0070.00715.01
7.3.70.0040.01114.59
7.3.60.0030.01214.79
7.3.50.0110.00414.78
7.3.40.0060.00614.83
7.3.30.0030.01014.78
7.3.20.0090.00616.68
7.3.10.0090.00316.88
7.3.00.0060.01016.81
7.2.330.0120.00616.79
7.2.320.0100.00616.73
7.2.310.0090.00916.59
7.2.300.0030.01316.79
7.2.290.0130.00416.55
7.2.250.0030.01015.12
7.2.240.0030.01715.24
7.2.230.0060.00615.06
7.2.220.0120.00915.10
7.2.210.0000.01615.00
7.2.200.0090.00614.94
7.2.190.0040.01114.94
7.2.180.0030.00915.18
7.2.170.0000.01215.10
7.2.00.0060.00819.18
7.1.330.0030.01315.57
7.1.320.0060.00915.62
7.1.310.0030.01015.91
7.1.300.0090.00315.51
7.1.290.0040.01215.84
7.1.280.0060.00915.45
7.1.270.0070.00715.79
7.1.260.0140.00015.85
7.1.100.0030.01018.20
7.1.70.0000.00817.40
7.1.60.0040.01120.03
7.1.50.0000.01016.97
7.1.00.0030.07722.37
7.0.200.0040.00416.78
7.0.60.0070.08020.06
7.0.50.0070.04317.92
7.0.40.0100.08320.07
7.0.30.0170.04720.22
7.0.20.0200.04720.38
7.0.10.0100.07720.10
7.0.00.0030.08720.09
5.6.280.0030.05020.82
5.6.210.0130.08020.55
5.6.200.0170.06718.12
5.6.190.0070.03720.45
5.6.180.0130.04020.43
5.6.170.0200.04320.45
5.6.160.0070.03720.44
5.6.150.0000.04318.21
5.6.140.0030.08718.16
5.6.130.0030.08718.11
5.6.120.0100.03721.13
5.6.110.0070.08321.09
5.6.100.0000.04321.11
5.6.90.0200.07320.95
5.6.80.0070.08020.40
5.5.350.0070.05720.41
5.5.340.0100.07717.88
5.5.330.0070.08020.29
5.5.320.0230.04720.24
5.5.310.0130.04020.26
5.5.300.0130.06718.01
5.5.290.0030.08717.97
5.5.280.0130.03020.77
5.5.270.0070.08320.88
5.5.260.0030.04020.89
5.5.250.0070.06320.55
5.5.240.0000.03320.16
5.4.450.0600.05719.50
5.4.440.0630.04719.54
5.4.430.0630.05719.47
5.4.420.0570.05019.51
5.4.410.0470.05719.33
5.4.400.0600.06018.95
5.4.390.0530.05319.14
5.4.380.0700.05718.94
5.4.370.0700.04719.25
5.4.360.0570.05719.30
5.4.350.0600.06319.14
5.4.340.0670.07019.26
5.4.320.0400.07319.14
5.4.310.0230.06319.31
5.4.300.0230.06019.27
5.4.290.0230.06319.32
5.4.280.0100.06319.16
5.4.270.0270.04318.80
5.4.260.0300.06318.91
5.4.250.0300.04718.94
5.4.240.0400.05319.12
5.4.230.0200.05318.93
5.4.220.0230.05718.91
5.4.210.0270.06319.14
5.4.200.0270.04316.60
5.4.190.0230.06319.05
5.4.180.0130.06018.81
5.4.170.0270.05318.90
5.4.160.0130.06018.80
5.4.150.0200.05718.88
5.4.140.0130.05716.42
5.4.130.0200.04716.46
5.4.120.0170.06316.34
5.4.110.0230.04316.33
5.4.100.0070.06016.29
5.4.90.0230.04716.54
5.4.80.0270.06016.44
5.4.70.0200.07716.36
5.4.60.0330.05016.18
5.4.50.0270.04316.20
5.4.40.0200.05016.29
5.4.30.0200.04716.51
5.4.20.0130.05316.38
5.4.10.0200.05016.43
5.4.00.0230.04715.69

preferences:
57.59 ms | 401 KiB | 5 Q