3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = array("start" => "[highlight]", "finish" => "[/highlight]"); $text = 'Some normal text. [highlight]<?php echo $somedata; ?>[/highlight] Some normal text.'; $start = strpos($text,$tags['start']); $finish = strpos($text,$tags['finish']); $code = substr($text,$start+strlen($tags['start']),($finish-($start+strlen($tags['start'])))); $highlighted = highlight_string($code,true); $text = str_replace($code,"¬",$text); $text = str_replace("¬",$highlighted,$text); $text = str_replace($tags['start'],"",$text); $text = str_replace($tags['finish'],"",$text); echo $text.'<br />';

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.0140.00716.50
8.3.50.0080.01121.99
8.3.40.0090.00618.49
8.3.30.0110.00419.09
8.3.20.0100.00720.20
8.3.10.0040.00423.57
8.3.00.0050.00519.38
8.2.180.0090.01318.23
8.2.170.0090.00622.96
8.2.160.0100.00320.57
8.2.150.0110.00724.18
8.2.140.0070.00424.66
8.2.130.0030.01226.16
8.2.120.0170.00022.02
8.2.110.0040.00422.22
8.2.100.0090.00317.84
8.2.90.0030.00519.01
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00019.79
8.2.50.0050.00318.07
8.2.40.0080.00019.88
8.2.30.0070.00020.04
8.2.20.0000.00817.64
8.2.10.0000.00718.13
8.2.00.0040.00417.65
8.1.280.0100.00725.92
8.1.270.0080.00023.87
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.93
8.1.230.0100.00019.16
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0090.00018.10
8.1.170.0090.00018.57
8.1.160.0070.00022.00
8.1.150.0020.00518.60
8.1.140.0040.00417.31
8.1.130.0070.00017.84
8.1.120.0000.00717.37
8.1.110.0050.00217.46
8.1.100.0040.00417.32
8.1.90.0050.00217.42
8.1.80.0000.00717.29
8.1.70.0030.00317.34
8.1.60.0000.00817.42
8.1.50.0070.00017.41
8.1.40.0040.00417.37
8.1.30.0030.00617.56
8.1.20.0040.00417.55
8.1.10.0080.00017.59
8.1.00.0000.00717.49
8.0.300.0040.00420.73
8.0.290.0000.00717.04
8.0.280.0030.00318.51
8.0.270.0030.00317.28
8.0.260.0000.00717.21
8.0.250.0030.00316.97
8.0.240.0000.00716.96
8.0.230.0000.00716.88
8.0.220.0030.00316.86
8.0.210.0000.00816.92
8.0.200.0000.00616.93
8.0.190.0060.00317.04
8.0.180.0080.00016.84
8.0.170.0030.00516.95
8.0.160.0040.00417.00
8.0.150.0070.00016.80
8.0.140.0030.00316.70
8.0.130.0060.00313.42
8.0.120.0050.00316.93
8.0.110.0040.00416.87
8.0.100.0000.00716.86
8.0.90.0040.00416.88
8.0.80.0090.00616.86
8.0.70.0040.00416.77
8.0.60.0040.00416.91
8.0.50.0040.00316.79
8.0.30.0140.00517.05
8.0.20.0120.00617.40
8.0.10.0040.00416.98
8.0.00.0090.00916.79
7.4.330.0000.00515.09
7.4.320.0050.00216.46
7.4.300.0000.00616.45
7.4.290.0030.00316.53
7.4.280.0030.00616.27
7.4.270.0070.00016.41
7.4.260.0050.00216.55
7.4.250.0030.00616.54
7.4.240.0000.00716.51
7.4.230.0030.00316.54
7.4.220.0040.01316.46
7.4.210.0080.00616.56
7.4.200.0040.00416.45
7.4.190.0000.00716.55
7.4.160.0080.00816.48
7.4.150.0070.01017.40
7.4.140.0120.00517.86
7.4.130.0120.00916.66
7.4.120.0120.00616.59
7.4.110.0070.01116.52
7.4.100.0180.01116.56
7.4.90.0100.01016.54
7.4.80.0100.01419.39
7.4.70.0000.01816.51
7.4.60.0030.01416.44
7.4.50.0090.00016.41
7.4.40.0120.00816.41
7.4.30.0130.00416.52
7.4.00.0070.01114.84
7.3.330.0030.00213.20
7.3.320.0000.00512.99
7.3.310.0000.00716.13
7.3.300.0070.00016.18
7.3.290.0100.00316.31
7.3.280.0100.00716.25
7.3.270.0060.01217.40
7.3.260.0170.00016.45
7.3.250.0070.01016.42
7.3.240.0110.01016.34
7.3.230.0070.01116.39
7.3.210.0030.01516.29
7.3.200.0110.00819.39
7.3.190.0140.00416.36
7.3.180.0120.00316.35
7.3.170.0090.00616.52
7.3.160.0120.00916.40
7.3.120.0070.00914.94
7.3.110.0160.00315.04
7.3.100.0070.00714.71
7.3.90.0030.01214.69
7.3.80.0030.00714.83
7.3.70.0060.01214.68
7.3.60.0070.01014.55
7.3.50.0060.00614.76
7.3.40.0080.00314.60
7.3.30.0030.00914.57
7.3.20.0070.00716.73
7.3.10.0030.01416.58
7.3.00.0090.00916.70
7.2.330.0120.00616.49
7.2.320.0070.01116.86
7.2.310.0070.01016.76
7.2.300.0090.00916.86
7.2.290.0090.00916.52
7.2.250.0090.00915.25
7.2.240.0090.00615.02
7.2.230.0030.01015.02
7.2.220.0040.01114.87
7.2.210.0120.00015.05
7.2.200.0030.01415.11
7.2.190.0100.01015.07
7.2.180.0060.01015.07
7.2.170.0060.01214.82
7.2.00.0070.00419.45
7.1.330.0000.01616.00
7.1.320.0060.00615.93
7.1.310.0070.00615.79
7.1.300.0060.01215.87
7.1.290.0070.00715.79
7.1.280.0000.01615.91
7.1.270.0060.00915.57
7.1.260.0060.01015.57
7.1.100.0000.01418.01
7.1.70.0000.00717.05
7.1.60.0110.01419.46
7.1.50.0140.01117.02
7.1.00.0000.07722.30
7.0.200.0130.01014.93
7.0.140.0000.07722.16
7.0.60.0130.07720.01
7.0.50.0070.05317.90
7.0.40.0070.06720.24
7.0.30.0500.07720.04
7.0.20.0100.05019.98
7.0.10.0100.08320.09
7.0.00.0100.04019.95
5.6.280.0070.07020.90
5.6.210.0000.05020.66
5.6.200.0070.05718.12
5.6.190.0070.08720.57
5.6.180.0030.04020.45
5.6.170.0300.09020.55
5.6.160.0070.03720.41
5.6.150.0070.08018.17
5.6.140.0030.06318.11
5.6.130.0070.07018.17
5.6.120.0100.03721.14
5.6.110.0030.09020.94
5.6.100.0030.05721.11
5.6.90.0030.09020.97
5.6.80.0070.08020.35
5.5.350.0030.08020.30
5.5.340.0100.08318.02
5.5.330.0070.05320.46
5.5.320.0330.07720.21
5.5.310.0200.04720.31
5.5.300.0030.04017.89
5.5.290.0030.04717.98
5.5.280.0130.07320.76
5.5.270.0100.08020.86
5.5.260.0100.07720.86
5.5.250.0030.08720.68
5.5.240.0200.04320.16
5.4.450.0800.06319.24
5.4.440.0830.06319.54
5.4.430.0870.04719.46
5.4.420.0870.04719.31
5.4.410.0800.06719.36
5.4.400.0570.04719.14
5.4.390.0900.06019.17
5.4.380.0100.07018.50
5.4.370.0330.04718.49
5.4.360.0400.04718.68
5.4.350.0200.06018.50
5.4.340.0330.04318.52
5.4.320.0050.03712.46
5.4.310.0060.03812.45
5.4.300.0120.04712.46
5.4.290.0090.04912.44
5.4.280.0080.03512.34
5.4.270.0040.03912.33
5.4.260.0050.03812.33
5.4.250.0100.04012.34
5.4.240.0070.03512.33
5.4.230.0080.03612.32
5.4.220.0080.03412.33
5.4.210.0070.03412.33
5.4.200.0030.04212.33
5.4.190.0090.03512.32
5.4.180.0080.03612.32
5.4.170.0100.03312.34
5.4.160.0020.04012.33
5.4.150.0080.03912.33
5.4.140.0090.03512.01
5.4.130.0080.04012.00
5.4.120.0080.03711.95
5.4.110.0090.04811.96
5.4.100.0070.03811.95
5.4.90.0080.04811.95
5.4.80.0070.05111.95
5.4.70.0050.04011.95
5.4.60.0070.03811.95
5.4.50.0060.04211.95
5.4.40.0130.04411.94
5.4.30.0050.03611.93
5.4.20.0060.03511.94
5.4.10.0080.05011.94
5.4.00.0120.06611.43
5.3.290.0040.04112.80
5.3.280.0110.05512.71
5.3.270.0130.05112.73
5.3.260.0070.04312.72
5.3.250.0090.03712.72
5.3.240.0100.03812.72
5.3.230.0090.05312.71
5.3.220.0090.05312.68
5.3.210.0090.05412.68
5.3.200.0060.03812.68
5.3.190.0030.04112.67
5.3.180.0070.03712.67
5.3.170.0090.03712.67
5.3.160.0070.03712.67
5.3.150.0040.04112.68
5.3.140.0080.03712.66
5.3.130.0080.04012.66
5.3.120.0120.03912.66
5.3.110.0100.04112.65
5.3.100.0080.04012.12
5.3.90.0070.03612.09
5.3.80.0030.05412.08
5.3.70.0050.05312.07
5.3.60.0060.06012.07
5.3.50.0060.05212.00
5.3.40.0080.05012.00
5.3.30.0100.04811.96
5.3.20.0050.05111.73
5.3.10.0070.05011.70
5.3.00.0060.05311.69
5.2.170.0030.0469.18
5.2.160.0070.0409.19
5.2.150.0180.0659.18
5.2.140.0070.0429.18
5.2.130.0030.0449.14
5.2.120.0090.0389.14
5.2.110.0080.0809.15
5.2.100.0080.0419.15
5.2.90.0110.0389.15
5.2.80.0110.0459.14
5.2.70.0070.0429.14
5.2.60.0030.0459.10
5.2.50.0060.0429.06
5.2.40.0100.0359.04
5.2.30.0040.0389.02
5.2.20.0080.0379.00
5.2.10.0040.0398.94
5.2.00.0040.0408.81
5.1.60.0020.0268.09
5.1.50.0020.0378.09
5.1.40.0080.0258.07
5.1.30.0040.0398.41
5.1.20.0030.0298.44
5.1.10.0050.0278.16
5.1.00.0040.0288.16
5.0.50.0050.0196.65
5.0.40.0050.0196.51
5.0.30.0090.0516.32
5.0.20.0080.0256.29
5.0.10.0050.0316.27
5.0.00.0070.0426.26
4.4.90.0070.0194.78
4.4.80.0070.0264.75
4.4.70.0040.0234.75
4.4.60.0050.0254.75
4.4.50.0030.0274.77
4.4.40.0030.0534.71
4.4.30.0050.0224.76
4.4.20.0050.0214.84
4.4.10.0020.0164.85
4.4.00.0040.0264.76
4.3.110.0030.0174.67
4.3.100.0040.0194.66
4.3.90.0040.0214.63
4.3.80.0040.0304.59
4.3.70.0010.0174.63
4.3.60.0020.0164.63
4.3.50.0020.0174.63
4.3.40.0010.0264.54
4.3.30.0020.0173.32
4.3.20.0020.0173.29
4.3.10.0020.0163.25
4.3.00.0130.01710.55

preferences:
48.72 ms | 401 KiB | 5 Q