3v4l.org

run code in 300+ PHP versions simultaneously
<form action="" method="GET"> <input type="text" name="search"> <input type="submit" name="submit" value="Search"> </form><br /> <?php $_GET['search'] = "apple/e".chr(0)."phpinfo();"; if (isset($_GET['search'])){ $search = htmlentities($_GET['search']); 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."; } ?>

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.80.0030.00616.88
8.3.70.0000.01816.63
8.3.60.0180.00018.56
8.3.50.0130.00721.13
8.3.40.0060.00918.94
8.3.30.0040.01118.79
8.3.20.0120.00620.20
8.3.10.0080.00023.52
8.3.00.0080.00022.46
8.2.200.0050.00516.75
8.2.190.0030.01017.00
8.2.180.0110.00425.92
8.2.170.0130.00622.96
8.2.160.0110.00620.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0090.00017.75
8.2.110.0030.00721.00
8.2.100.0120.00017.97
8.2.90.0000.00817.97
8.2.80.0050.00319.15
8.2.70.0000.00817.50
8.2.60.0040.00417.63
8.2.50.0000.00717.93
8.2.40.0050.00319.66
8.2.30.0060.00319.92
8.2.20.0000.00717.64
8.2.10.0050.00218.08
8.2.00.0040.00418.07
8.1.290.0030.00730.84
8.1.280.0110.00725.92
8.1.270.0040.00420.28
8.1.260.0110.00026.35
8.1.250.0120.00328.09
8.1.240.0090.00022.19
8.1.230.0110.00020.89
8.1.220.0050.00317.76
8.1.210.0050.00318.96
8.1.200.0060.00617.36
8.1.190.0000.00817.13
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00823.70
8.1.150.0000.00819.01
8.1.140.0090.00017.40
8.1.130.0030.00317.68
8.1.120.0040.00317.37
8.1.110.0040.00417.41
8.1.100.0040.00417.38
8.1.90.0000.00717.46
8.1.80.0000.00817.46
8.1.70.0000.00717.46
8.1.60.0100.00017.54
8.1.50.0060.00317.58
8.1.40.0040.00417.49
8.1.30.0000.00917.67
8.1.20.0000.00717.59
8.1.10.0040.00417.52
8.1.00.0050.00317.42
8.0.300.0000.00820.09
8.0.290.0040.00416.63
8.0.280.0070.00018.47
8.0.270.0030.00317.22
8.0.260.0030.00317.13
8.0.250.0000.00817.04
8.0.240.0040.00416.95
8.0.230.0030.00316.86
8.0.220.0000.00717.00
8.0.210.0030.00316.97
8.0.200.0060.00017.03
8.0.190.0050.00317.02
8.0.180.0050.00316.83
8.0.170.0060.00316.99
8.0.160.0000.00717.04
8.0.150.0040.00416.97
8.0.140.0030.00316.91
8.0.130.0030.00313.46
8.0.120.0080.00016.93
8.0.110.0000.00716.98
8.0.100.0000.00716.85
8.0.90.0040.00416.95
8.0.80.0080.00716.93
8.0.70.0050.00216.84
8.0.60.0040.00416.83
8.0.50.0000.00816.77
8.0.30.0130.00617.07
8.0.20.0110.01117.40
8.0.10.0000.00716.97
8.0.00.0090.00816.99
7.4.330.0000.00515.08
7.4.320.0000.00616.48
7.4.300.0030.00316.60
7.4.290.0000.00716.59
7.4.280.0040.00416.50
7.4.270.0030.00316.54
7.4.260.0000.00716.53
7.4.250.0040.00416.58
7.4.240.0040.00416.52
7.4.230.0020.00516.32
7.4.220.0110.00616.45
7.4.210.0100.00716.66
7.4.200.0030.00316.41
7.4.160.0090.00916.52
7.4.150.0110.00717.40
7.4.140.0050.01517.86
7.4.130.0080.00816.56
7.4.120.0080.01016.47
7.4.110.0070.01016.74
7.4.100.0080.00816.63
7.4.90.0070.01016.43
7.4.80.0100.01319.39
7.4.70.0070.01016.48
7.4.60.0080.00816.61
7.4.50.0040.00416.38
7.4.40.0130.01016.46
7.4.30.0180.00016.69
7.4.00.0070.01015.13
7.3.330.0060.00013.16
7.3.320.0000.00613.22
7.3.310.0070.00016.34
7.3.300.0030.00316.44
7.3.290.0070.00016.25
7.3.280.0110.00616.40
7.3.270.0060.01017.40
7.3.260.0030.01316.36
7.3.250.0150.00516.48
7.3.240.0170.00016.44
7.3.230.0060.01616.46
7.3.210.0070.01016.47
7.3.200.0110.00719.39
7.3.190.0100.00616.46
7.3.180.0080.00816.52
7.3.170.0140.00316.56
7.3.160.0160.00616.43
7.3.120.0100.00814.92
7.3.110.0070.01214.85
7.3.100.0050.01214.94
7.3.90.0060.00614.89
7.3.80.0070.00415.06
7.3.70.0050.00814.93
7.3.60.0050.01114.91
7.3.50.0070.00714.82
7.3.40.0050.00714.83
7.3.30.0020.01214.96
7.3.20.0070.00516.65
7.3.10.0060.00816.78
7.3.00.0030.01016.75
7.2.330.0120.00816.71
7.2.320.0060.01616.83
7.2.310.0120.00616.63
7.2.300.0070.01616.60
7.2.290.0110.00616.65
7.2.250.0080.00915.11
7.2.240.0070.01315.20
7.2.230.0010.01415.00
7.2.220.0060.00914.99
7.2.210.0080.00715.11
7.2.200.0030.01115.02
7.2.190.0040.00914.98
7.2.180.0050.00815.04
7.2.170.0060.00815.03
7.2.160.0070.00814.99
7.2.150.0040.01016.82
7.2.140.0050.00416.90
7.2.130.0020.01216.99
7.2.120.0070.00817.02
7.2.110.0050.00716.99
7.2.100.0060.00916.88
7.2.90.0070.00916.90
7.2.80.0070.00716.92
7.2.70.0090.00616.94
7.2.60.0060.00916.83
7.2.50.0050.01017.05
7.2.40.0080.00516.94
7.2.30.0070.00716.84
7.2.20.0050.00816.69
7.2.10.0060.00716.78
7.2.00.0050.00816.92
7.1.330.0050.01015.94
7.1.320.0080.00715.69
7.1.310.0050.00615.76
7.1.300.0050.00815.71
7.1.290.0030.00715.77
7.1.280.0040.00715.67
7.1.270.0050.00815.83
7.1.260.0040.00815.87
7.1.250.0040.00815.86
7.1.240.0050.00915.60
7.1.230.0080.00515.81
7.1.220.0050.00815.71
7.1.210.0020.01115.78
7.1.200.0040.00815.78
7.1.190.0030.01015.88
7.1.180.0000.01315.62
7.1.170.0070.01015.98
7.1.160.0070.00915.69
7.1.150.0030.01215.84
7.1.140.0070.01015.96
7.1.130.0010.01215.79
7.1.120.0050.00715.70
7.1.110.0030.01015.75
7.1.100.0050.00815.86
7.1.90.0080.00315.89
7.1.80.0060.00715.79
7.1.70.0030.00816.27
7.1.60.0050.00616.42
7.1.50.0120.00722.14
7.1.40.0040.00715.97
7.1.30.0090.00215.79
7.1.20.0060.00615.86
7.1.10.0030.00515.80
7.1.00.0030.03417.97
7.0.330.0090.00515.43
7.0.320.0040.00715.46
7.0.310.0110.00515.30
7.0.300.0080.00615.37
7.0.290.0050.00715.51
7.0.280.0060.00815.45
7.0.270.0070.00315.34
7.0.260.0080.00315.42
7.0.250.0070.00515.51
7.0.240.0030.01015.20
7.0.230.0090.00715.43
7.0.220.0050.00915.50
7.0.210.0050.00815.29
7.0.200.0030.00915.90
7.0.190.0060.00715.46
7.0.180.0080.00415.41
7.0.170.0060.00715.48
7.0.160.0000.00915.38
7.0.150.0030.01015.28
7.0.140.0070.00715.35
7.0.130.0040.01115.33
7.0.120.0060.00615.56
7.0.110.0060.00215.46
7.0.100.0060.00615.40
7.0.90.0050.00715.37
7.0.80.0040.01015.25
7.0.70.0040.00615.50
7.0.60.0100.02616.92
7.0.50.0080.02816.36
7.0.40.0080.02915.72
7.0.30.0160.02215.63
7.0.20.0100.03415.83
7.0.10.0080.03315.78
7.0.00.0070.01715.58
5.6.400.0110.00214.33
5.6.390.0050.00914.63
5.6.380.0060.00414.24
5.6.370.0030.01314.32
5.6.360.0020.00914.46
5.6.350.0050.00714.46
5.6.340.0070.00914.48
5.6.330.0050.00914.69
5.6.320.0110.00314.65
5.6.310.0030.01014.31
5.6.300.0060.00514.41
5.6.290.0050.00714.44
5.6.280.0090.02316.69
5.6.270.0050.00814.20
5.6.260.0050.00514.21
5.6.250.0040.01014.20
5.6.240.0070.00714.48
5.6.230.0090.00714.45
5.6.220.0060.00514.70
5.6.210.0050.03416.53
5.6.200.0030.02115.64
5.6.190.0050.03416.57
5.6.180.0070.03216.49
5.6.170.0080.02716.33
5.6.160.0060.02216.56
5.6.150.0060.02215.64
5.6.140.0060.01915.66
5.6.130.0060.02615.80
5.6.120.0070.02416.69
5.6.110.0030.03316.58
5.6.100.0110.02916.65
5.6.90.0070.03216.58
5.6.80.0050.01816.42
5.6.70.1170.01916.36
5.6.60.0050.00714.33
5.6.50.0080.00714.34
5.6.40.0030.01214.12
5.6.30.0030.00814.50
5.6.20.0020.00914.29
5.6.10.0060.01014.38
5.6.00.0080.00814.40
5.5.380.0040.01114.28
5.5.370.0110.00614.22
5.5.360.0050.00814.47
5.5.350.0110.02416.35
5.5.340.0100.02815.42
5.5.330.0060.03216.36
5.5.320.0100.02116.30
5.5.310.0150.03216.36
5.5.300.0040.03215.39
5.5.290.0060.03315.54
5.5.280.0110.03116.62
5.5.270.0070.03216.51
5.5.260.0080.03216.60
5.5.250.0080.03316.40
5.5.240.0110.02416.14
5.5.230.0080.00414.21
5.5.220.0030.00614.06
5.5.210.0090.00714.18
5.5.200.0060.00914.38
5.5.190.0030.00814.46
5.5.180.0070.00914.30
5.5.170.0020.01314.40
5.5.160.0080.00814.17
5.5.150.0090.00514.15
5.5.140.0080.00514.45
5.5.130.0070.00714.54
5.5.120.0040.00914.04
5.5.110.0030.00714.34
5.5.100.0080.00514.30
5.5.90.0020.01314.24
5.5.80.0100.00414.11
5.5.70.0090.00514.04
5.5.60.0050.00914.09
5.5.50.0050.01014.13
5.5.40.0090.00514.14
5.5.30.0040.01114.27
5.5.20.0000.01314.46
5.5.10.0030.00814.12
5.5.00.0040.01014.46
5.4.450.0380.01814.12
5.4.440.0310.02113.96
5.4.430.0280.02514.05
5.4.420.0260.02313.94
5.4.410.0350.01913.98
5.4.400.0300.02014.00
5.4.390.0390.02413.96
5.4.380.0350.02213.94
5.4.370.0280.02013.85
5.4.360.0390.02713.99
5.4.350.0240.02813.90
5.4.340.0080.02313.83
5.4.330.0090.00311.30
5.4.320.0040.02213.92
5.4.310.0210.02213.82
5.4.300.0310.02913.76
5.4.290.0340.02313.85
5.4.280.0330.02013.92
5.4.270.0280.02313.78
5.4.260.0340.01813.86
5.4.250.0310.02113.87
5.4.240.0340.03013.96
5.4.230.0240.02513.94
5.4.220.0310.02013.98
5.4.210.0340.01913.80
5.4.200.0210.02713.01
5.4.190.0300.02213.79
5.4.180.0320.02113.80
5.4.170.0300.02313.89
5.4.160.0280.02013.67
5.4.150.0300.02113.92
5.4.140.0250.02312.96
5.4.130.0300.01913.00
5.4.120.0250.02813.04
5.4.110.0300.02313.02
5.4.100.0350.01912.94
5.4.90.0320.02013.05
5.4.80.0230.02413.07
5.4.70.0240.02513.00
5.4.60.0190.01713.08
5.4.50.0090.02413.04
5.4.40.0070.02313.09
5.4.30.0220.02113.21
5.4.20.0290.01813.06
5.4.10.0300.01913.06
5.4.00.0320.02612.90
5.3.290.0900.05314.61
5.3.280.0770.05714.70
5.3.270.0870.05314.79
5.3.260.0930.05714.71
5.3.250.0730.06014.70
5.3.240.0830.05314.55
5.3.230.0770.05714.66
5.3.220.0700.06014.48
5.3.210.0970.07314.50
5.3.200.0900.06014.52
5.3.190.0870.04014.49
5.3.180.0500.05714.51
5.3.170.0770.05014.53
5.3.160.0300.05014.49
5.3.150.0070.05314.44
5.3.140.0100.05014.62
5.3.130.0500.06314.53
5.3.120.0730.04714.47
5.3.110.0870.05314.51
5.3.100.0700.05013.95
5.3.90.0600.05714.08
5.3.80.0900.05013.93
5.3.70.0700.05313.89
5.3.60.0830.05314.07
5.3.50.0830.07714.00
5.3.40.0900.07013.80
5.3.30.0800.04713.99
5.3.20.1000.04013.64
5.3.10.0870.04313.73
5.3.00.0770.05313.70
5.2.170.0600.04311.13
5.2.160.0500.03711.32
5.2.150.0170.03311.11
5.2.140.0170.03311.27
5.2.130.0070.04011.03
5.2.120.0570.04311.12
5.2.110.0770.04711.02
5.2.100.0700.05010.98
5.2.90.0770.03311.20
5.2.80.0770.05011.33
5.2.70.0770.04311.12
5.2.60.0600.05310.97
5.2.50.0470.05711.07
5.2.40.0100.04311.01
5.2.30.0130.04710.90
5.2.20.0430.05011.06
5.2.10.0530.04310.95
5.2.00.0500.04710.59
5.1.60.0000.04710.06
5.1.50.0070.03310.09
5.1.40.0500.03710.05
5.1.30.0700.04710.36
5.1.20.0100.04710.30
5.1.10.0070.04710.14
5.1.00.0100.03010.06
5.0.50.0200.0478.64
5.0.40.0430.0378.40
5.0.30.0330.0438.46
5.0.20.0470.0278.40
5.0.10.0270.0378.40
5.0.00.0300.0408.40
4.4.90.0370.0178.40
4.4.80.0300.0278.40
4.4.70.0270.0338.40
4.4.60.0330.0208.40
4.4.50.0270.0308.40
4.4.40.0400.0408.40
4.4.30.0400.0238.40
4.4.20.0330.0278.40
4.4.10.0330.0308.40
4.4.00.0270.0438.40
4.3.110.0330.0208.40
4.3.100.0430.0138.40
4.3.90.0300.0278.40
4.3.80.0170.0378.40
4.3.70.0370.0138.40
4.3.60.0430.0208.40
4.3.50.0230.0278.40
4.3.40.0300.0338.40
4.3.30.0100.0238.40
4.3.20.0100.0278.41
4.3.10.0170.0278.41
4.3.00.0200.0278.41

preferences:
54.99 ms | 401 KiB | 5 Q