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.00618.55
8.3.50.0130.00821.15
8.3.40.0120.00318.67
8.3.30.0090.00618.84
8.3.20.0070.01120.35
8.3.10.0000.00821.73
8.3.00.0100.00319.41
8.2.180.0150.00016.75
8.2.170.0110.00422.96
8.2.160.0110.00420.57
8.2.150.0040.00424.18
8.2.140.0100.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00817.38
8.2.110.0090.00020.39
8.2.100.0110.00017.63
8.2.90.0070.00019.22
8.2.80.0040.00417.97
8.2.70.0050.00317.38
8.2.60.0040.00418.05
8.2.50.0040.00718.07
8.2.40.0000.00921.02
8.2.30.0030.00519.67
8.2.20.0050.00317.70
8.2.10.0040.00418.02
8.2.00.0000.00818.15
8.1.280.0170.00025.92
8.1.270.0030.00520.29
8.1.260.0000.00726.35
8.1.250.0030.00628.09
8.1.240.0030.00622.14
8.1.230.0060.00617.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0060.00317.35
8.1.180.0000.00718.10
8.1.170.0030.00518.66
8.1.160.0070.00022.02
8.1.150.0000.00718.91
8.1.140.0040.00417.57
8.1.130.0000.00717.71
8.1.120.0050.00317.50
8.1.110.0040.00417.46
8.1.100.0060.00317.52
8.1.90.0000.00717.42
8.1.80.0070.00017.48
8.1.70.0080.00017.50
8.1.60.0000.00817.54
8.1.50.0030.00517.48
8.1.40.0090.00017.53
8.1.30.0000.00817.66
8.1.20.0050.00317.54
8.1.10.0000.00817.54
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0050.00216.74
8.0.280.0040.00418.49
8.0.270.0080.00017.27
8.0.260.0030.00317.27
8.0.250.0070.00017.08
8.0.240.0000.00717.00
8.0.230.0000.00716.89
8.0.220.0080.00016.91
8.0.210.0070.00316.97
8.0.200.0060.00017.04
8.0.190.0000.00716.99
8.0.180.0040.00416.93
8.0.170.0060.00316.82
8.0.160.0000.00717.02
8.0.150.0030.00516.77
8.0.140.0040.00416.78
8.0.130.0030.00313.41
8.0.120.0050.00316.98
8.0.110.0030.00516.89
8.0.100.0070.00016.85
8.0.90.0070.00016.88
8.0.80.0090.00617.02
8.0.70.0040.00416.79
8.0.60.0040.00416.97
8.0.50.0020.00516.92
8.0.30.0070.01717.21
8.0.20.0100.00917.40
8.0.10.0000.00716.98
8.0.00.0080.00916.76
7.4.330.0020.00215.14
7.4.320.0060.00016.44
7.4.300.0060.00016.43
7.4.290.0000.00716.59
7.4.280.0040.00416.62
7.4.270.0060.00016.50
7.4.260.0050.00013.23
7.4.250.0000.00716.50
7.4.240.0040.00416.60
7.4.230.0070.00016.71
7.4.220.0120.00916.73
7.4.210.0070.01116.49
7.4.200.0040.00416.41
7.4.160.0120.00616.65
7.4.150.0120.01217.40
7.4.140.0130.00717.86
7.4.130.0110.00916.51
7.4.120.0160.00016.49
7.4.110.0060.01216.50
7.4.100.0100.01316.50
7.4.90.0110.00716.49
7.4.80.0120.00619.39
7.4.70.0110.00616.53
7.4.60.0060.00916.48
7.4.50.0040.00416.72
7.4.40.0100.00716.52
7.4.30.0130.01016.48
7.4.00.0050.01415.01
7.3.330.0030.00313.19
7.3.320.0050.00013.11
7.3.310.0000.00716.21
7.3.300.0070.00016.18
7.3.290.0060.01116.39
7.3.280.0070.01116.42
7.3.270.0120.00617.40
7.3.260.0070.01016.75
7.3.250.0130.00416.41
7.3.240.0100.00716.45
7.3.230.0140.00716.57
7.3.210.0100.00916.68
7.3.200.0180.00519.39
7.3.190.0070.01016.46
7.3.180.0150.00316.50
7.3.170.0150.00316.48
7.3.160.0100.01016.53
7.3.120.0060.01214.95
7.3.110.0100.00714.93
7.3.100.0130.00314.99
7.3.90.0030.01014.71
7.3.80.0030.01314.66
7.3.70.0100.00715.02
7.3.60.0060.01014.86
7.3.50.0040.01114.95
7.3.40.0030.01414.95
7.3.30.0000.01514.97
7.3.20.0040.01116.50
7.3.10.0080.00816.75
7.3.00.0030.01416.66
7.2.330.0140.00416.80
7.2.320.0100.00716.77
7.2.310.0140.00316.54
7.2.300.0030.01416.72
7.2.290.0000.01816.60
7.2.250.0000.01814.81
7.2.240.0070.01014.77
7.2.230.0080.00414.78
7.2.220.0070.00714.96
7.2.210.0070.01115.16
7.2.200.0060.00915.07
7.2.190.0060.00915.27
7.2.180.0070.01015.22
7.2.170.0090.00015.04
7.2.00.0030.00619.41
7.1.330.0100.00316.02
7.1.320.0040.01115.87
7.1.310.0090.00915.78
7.1.300.0070.00715.66
7.1.290.0040.01115.77
7.1.280.0110.00315.65
7.1.270.0030.01215.91
7.1.260.0030.01415.80
7.1.100.0060.00618.29
7.1.70.0040.00417.25
7.1.60.0150.00020.03
7.1.50.0070.00717.11
7.1.00.0070.07322.43
7.0.200.0050.00216.77
7.0.60.0000.08719.99
7.0.50.0030.06017.88
7.0.40.0100.06020.27
7.0.30.0400.06320.16
7.0.20.0300.08020.20
7.0.10.0130.08320.30
7.0.00.0070.04720.08
5.6.280.0000.05721.05
5.6.210.0000.08720.73
5.6.200.0030.04018.21
5.6.190.0170.08020.64
5.6.180.0100.04720.41
5.6.170.0270.07320.42
5.6.160.0030.07020.44
5.6.150.0070.04718.19
5.6.140.0030.04018.15
5.6.130.0100.05018.14
5.6.120.0200.04020.89
5.6.110.0070.08321.01
5.6.100.0030.08321.09
5.6.90.0100.06720.98
5.6.80.0100.06720.51
5.5.350.0030.06320.48
5.5.340.0130.06718.02
5.5.330.0030.09020.23
5.5.320.0270.08020.41
5.5.310.0370.07020.50
5.5.300.0130.08017.96
5.5.290.0070.06718.01
5.5.280.0130.07320.84
5.5.270.0000.04720.80
5.5.260.0130.07720.87
5.5.250.0130.07720.59
5.5.240.0100.07020.16
5.4.450.0170.05719.64
5.4.440.0530.05319.24
5.4.430.0530.05019.54
5.4.420.0630.06019.45
5.4.410.0470.06019.51
5.4.400.0430.05019.26
5.4.390.0570.05318.83
5.4.380.0430.04719.14
5.4.370.0430.05019.09
5.4.360.0230.07319.15
5.4.350.0370.05319.20
5.4.340.0370.05719.15
5.4.320.0600.04718.81
5.4.310.0500.05019.10
5.4.300.0570.04719.12
5.4.290.0670.04319.30
5.4.280.0500.05719.29
5.4.270.0130.05319.28
5.4.260.0170.04719.22
5.4.250.0230.04018.77
5.4.240.0200.05718.80
5.4.230.0400.04019.30
5.4.220.0170.05719.19
5.4.210.0270.04718.76
5.4.200.0300.04016.69
5.4.190.0170.05318.93
5.4.180.0130.05718.89
5.4.170.0170.05318.89
5.4.160.0300.04019.04
5.4.150.0100.05319.23
5.4.140.0170.04716.31
5.4.130.0300.03716.15
5.4.120.0200.04716.55
5.4.110.0130.05016.42
5.4.100.0170.05316.29
5.4.90.0230.04316.41
5.4.80.0230.04316.30
5.4.70.0170.05316.36
5.4.60.0130.05316.41
5.4.50.0100.05316.42
5.4.40.0170.05316.25
5.4.30.0130.05716.40
5.4.20.0200.04716.22
5.4.10.0170.04716.08
5.4.00.0200.04315.57

preferences:
56.89 ms | 401 KiB | 5 Q