3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = htmlentities(phpinfo%2528%2529%253B%2523%257Capple%252Fe%2500); echo $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)
5.6.140.0100.04018.14
5.6.130.0030.04018.14
5.6.120.0130.08020.96
5.6.110.0100.05720.88
5.6.100.0100.08320.93
5.6.90.0070.04021.10
5.6.80.0070.06020.52
5.6.70.4530.04020.52
5.5.300.0130.05717.95
5.5.290.0070.07017.99
5.5.280.0130.07720.73
5.5.270.0130.07720.72
5.5.260.0130.08320.75
5.5.250.0200.07320.61
5.5.240.4230.04020.15
5.4.450.0520.05019.41
5.4.440.0530.05219.42
5.4.430.0600.05519.49
5.4.420.0500.06219.32
5.4.410.0730.05519.16
5.4.400.0630.05319.12
5.4.390.0530.05319.23
5.4.380.0630.05818.91
5.4.370.0550.05318.71
5.4.360.0530.05218.96
5.4.350.0680.05518.87
5.4.340.0570.06518.80
5.4.320.0340.05014.70
5.4.310.0330.04414.71
5.4.300.0310.04414.74
5.4.290.0280.04614.70
5.4.280.0300.04414.67
5.4.270.0290.04314.63
5.4.260.0260.04714.64
5.4.250.0300.04914.57
5.4.240.0290.04514.52
5.4.230.0390.03914.53
5.4.220.0380.04614.63
5.4.210.0410.04614.62
5.4.200.0310.04214.64
5.4.190.0350.04614.52
5.4.180.0340.04314.57
5.4.170.0310.04514.57
5.4.160.0320.04214.62
5.4.150.0330.04414.63
5.4.140.0350.04913.55
5.4.130.0340.04013.48
5.4.120.0300.04113.45
5.4.110.0280.04713.40
5.4.100.0320.04713.54
5.4.90.0360.04713.42
5.4.80.0260.04413.53
5.4.70.0320.04113.51
5.4.60.0350.03913.53
5.4.50.0300.04113.41
5.4.40.0360.04413.46
5.4.30.0270.04313.50
5.4.20.0260.04013.49
5.4.10.0290.04913.40
5.4.00.0310.04512.99
5.3.290.0300.04813.37
5.3.280.0330.03913.32
5.3.270.0260.04413.31
5.3.260.0310.04613.31
5.3.250.0250.05213.33
5.3.240.0260.04513.30
5.3.230.0270.04413.28
5.3.220.0350.03813.26
5.3.210.0290.04513.25
5.3.200.0300.04413.25
5.3.190.0290.04513.29
5.3.180.0370.04413.25
5.3.170.0260.04513.25
5.3.160.0190.04813.28
5.3.150.0300.04213.29
5.3.140.0310.04013.28
5.3.130.0270.04713.22
5.3.120.0280.04513.29
5.3.110.0280.04213.25
5.3.100.0250.04312.70
5.3.90.0290.04412.69
5.3.80.0330.04712.68
5.3.70.0340.04112.65
5.3.60.0330.03912.69
5.3.50.0260.03912.61
5.3.40.0330.04012.63
5.3.30.0260.04212.56
5.3.20.0310.04612.34
5.3.10.0320.03912.29
5.3.00.0320.04512.36
5.2.170.0240.0379.83
5.2.160.0260.0329.79
5.2.150.0230.0369.84
5.2.140.0270.0359.78
5.2.130.0260.0329.75
5.2.120.0240.0329.74
5.2.110.0250.0339.74
5.2.100.0260.0319.78
5.2.90.0240.0349.79
5.2.80.0240.0369.82
5.2.70.0280.0349.73
5.2.60.0220.0359.69
5.2.50.0290.0309.64
5.2.40.0230.0309.68
5.2.30.0250.0439.61
5.2.20.0210.0339.63
5.2.10.0200.0329.55
5.2.00.0200.0319.39
5.1.60.0230.0258.71
5.1.50.0160.0318.70
5.1.40.0200.0268.74
5.1.30.0200.0299.00
5.1.20.0240.0289.02
5.1.10.0160.0338.78
5.1.00.0210.0268.81
5.0.50.0100.0267.22
5.0.40.0100.0247.18
5.0.30.0140.0376.90
5.0.20.0140.0246.89
5.0.10.0140.0246.88
5.0.00.0110.0386.90
4.4.90.0130.0175.13
4.4.80.0110.0225.10
4.4.70.0090.0205.10
4.4.60.0170.0175.11
4.4.50.0110.0245.11
4.4.40.0150.0285.08
4.4.30.0130.0215.12
4.4.20.0140.0185.18
4.4.10.0100.0185.19
4.4.00.0120.0295.11
4.3.110.0150.0165.05
4.3.100.0130.0215.03
4.3.90.0120.0164.98
4.3.80.0120.0314.98
4.3.70.0140.0135.00
4.3.60.0120.0155.00
4.3.50.0120.0205.00
4.3.40.0100.0264.91
4.3.30.0070.0204.04
4.3.20.0070.0204.02
4.3.10.0050.0194.00
4.3.00.0070.01810.39

preferences:
143.45 ms | 1394 KiB | 7 Q