3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type:text/html; charset=utf-8'); $heart = mb_convert_encoding('&#9829;', 'UTF-8', 'HTML-ENTITIES'); echo "&lt;?php<br><br>\n", "$<span class='red'>{$heart}</span> = \"love\";<br>\n", "var_dump( \"I $<span class='red'>{$heart}</span> PHP!\" );";

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.00316.50
8.3.50.0140.00321.99
8.3.40.0100.01018.85
8.3.30.0070.00719.10
8.3.20.0100.00720.16
8.3.10.0050.00323.61
8.3.00.0030.00619.15
8.2.180.0030.01316.50
8.2.170.0090.01222.96
8.2.160.0130.00020.35
8.2.150.0100.01024.18
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0040.00420.38
8.2.110.0070.00321.00
8.2.100.0160.00017.91
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0070.00317.63
8.2.60.0000.00718.03
8.2.50.0040.00418.10
8.2.40.0000.00819.94
8.2.30.0070.00018.29
8.2.20.0040.00417.61
8.2.10.0040.00419.87
8.2.00.0040.00417.74
8.1.280.0050.01025.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.70
8.1.230.0110.00017.70
8.1.220.0030.00717.74
8.1.210.0000.00918.77
8.1.200.0030.00617.22
8.1.190.0000.00717.10
8.1.180.0040.00418.10
8.1.170.0040.00418.32
8.1.160.0000.00722.05
8.1.150.0050.00218.59
8.1.140.0070.00017.32
8.1.130.0040.00417.82
8.1.120.0000.00717.37
8.1.110.0030.00617.48
8.1.100.0000.00717.41
8.1.90.0040.00417.34
8.1.80.0050.00317.45
8.1.70.0030.00317.38
8.1.60.0060.00317.46
8.1.50.0040.00417.53
8.1.40.0050.00317.54
8.1.30.0030.00717.63
8.1.20.0040.00417.52
8.1.10.0040.00417.57
8.1.00.0030.00617.36
8.0.300.0000.00918.77
8.0.290.0050.00316.75
8.0.280.0050.00318.50
8.0.270.0000.00717.25
8.0.260.0000.00617.31
8.0.250.0070.00017.04
8.0.240.0030.00317.08
8.0.230.0030.00316.92
8.0.220.0070.00016.91
8.0.210.0000.00716.97
8.0.200.0070.00017.02
8.0.190.0000.00716.89
8.0.180.0000.00716.99
8.0.170.0050.00316.86
8.0.160.0080.00016.85
8.0.150.0080.00016.99
8.0.140.0030.00316.96
8.0.130.0000.00513.41
8.0.120.0080.00016.75
8.0.110.0040.00416.88
8.0.100.0030.00616.95
8.0.90.0040.00416.96
8.0.80.0100.01116.84
8.0.70.0040.00416.89
8.0.60.0070.00016.99
8.0.50.0040.00416.97
8.0.30.0110.01017.23
8.0.20.0130.00617.40
8.0.10.0040.00416.75
8.0.00.0110.00816.87
7.4.330.0000.00515.00
7.4.320.0030.00316.48
7.4.300.0000.00816.44
7.4.290.0030.00316.41
7.4.280.0020.00516.58
7.4.270.0030.00316.59
7.4.260.0030.00316.49
7.4.250.0000.00816.56
7.4.240.0010.00616.47
7.4.230.0030.00316.64
7.4.220.0060.02016.68
7.4.210.0070.01016.55
7.4.200.0040.00416.64
7.4.190.0070.00016.54
7.4.160.0060.00916.59
7.4.150.0030.01417.40
7.4.140.0110.00617.86
7.4.130.0080.00816.51
7.4.120.0060.01016.44
7.4.110.0130.00616.39
7.4.100.0110.00516.34
7.4.90.0070.01016.41
7.4.80.0150.00619.39
7.4.70.0030.01316.48
7.4.60.0100.00616.51
7.4.50.0070.00316.57
7.4.40.0060.01016.43
7.4.30.0160.00016.64
7.4.00.0060.00914.83
7.3.330.0000.00613.02
7.3.320.0000.00612.99
7.3.310.0000.00716.41
7.3.300.0000.00716.30
7.3.290.0030.01316.25
7.3.280.0060.01016.23
7.3.270.0070.01017.40
7.3.260.0030.01416.48
7.3.250.0090.00916.41
7.3.240.0030.01316.45
7.3.230.0160.00016.39
7.3.210.0120.00616.59
7.3.200.0070.01019.39
7.3.190.0100.00716.30
7.3.180.0060.00916.56
7.3.170.0160.00516.45
7.3.160.0120.00316.25
7.3.120.0030.01314.72
7.3.10.0090.00416.70
7.3.00.0030.00716.48
7.2.330.0070.01116.60
7.2.320.0140.00416.59
7.2.310.0070.01416.63
7.2.300.0100.01016.61
7.2.290.0070.01116.29
7.2.130.0050.00817.13
7.2.120.0110.00316.84
7.2.110.0120.00316.79
7.2.100.0060.00616.89
7.2.90.0100.00716.99
7.2.80.0040.01117.08
7.2.70.0100.00316.75
7.2.60.0130.00317.02
7.2.50.0040.01516.78
7.2.40.0100.01016.61
7.2.30.0060.01316.66
7.2.20.0030.01016.91
7.2.10.0160.00016.83
7.2.00.0070.00718.30
7.1.250.0070.00715.53
7.1.100.0030.01017.88
7.1.70.0040.00417.10
7.1.60.0150.01119.46
7.1.50.0040.01516.96
7.1.00.0000.07722.36
7.0.200.0030.00616.91
7.0.140.0070.06722.15
7.0.60.0100.03319.99
7.0.50.0070.06017.88
7.0.40.0030.09019.91
7.0.30.0300.06720.09
7.0.20.0230.06320.04
7.0.10.0030.06720.20
7.0.00.0100.07020.17
5.6.280.0100.06721.07
5.6.210.0000.08720.72
5.6.200.0070.04318.13
5.6.190.0070.04320.43
5.6.180.0070.08020.61
5.6.170.0100.04720.49
5.6.160.0000.09020.37
5.6.150.0070.08018.14
5.6.140.0100.06318.15
5.6.130.0030.05018.16
5.6.120.0170.07720.94
5.6.110.0100.03721.00
5.6.100.0230.07020.88
5.6.90.0130.08020.96
5.6.80.0070.05320.40
5.5.350.4370.03720.43
5.5.340.0100.07717.91
5.5.330.0030.07320.36
5.5.320.0130.08720.20
5.5.310.0270.05020.23
5.5.300.0070.03718.01
5.5.290.0070.03717.89
5.5.280.0130.07720.86
5.5.270.0030.05020.67
5.5.260.0000.08720.77
5.5.250.0070.07320.46
5.5.240.0030.07720.07
5.4.450.0200.06319.11
5.4.440.0570.05719.63
5.4.430.0330.05019.27
5.4.420.0230.05719.31
5.4.410.0370.06719.39
5.4.400.0230.05718.78
5.4.390.0300.05319.25
5.4.380.0200.05718.67
5.4.370.0130.05318.56
5.4.360.0070.05718.67
5.4.350.0100.06018.53
5.4.340.0170.05018.68
5.4.320.0080.04012.46
5.4.310.0050.03912.45
5.4.300.0060.03612.46
5.4.290.0260.07812.45
5.4.280.0110.04212.35
5.4.270.0070.04712.35
5.4.260.0080.05512.35
5.4.250.0160.05112.35
5.4.240.0200.08612.35
5.4.230.0090.05512.34
5.4.220.0100.05312.34
5.4.210.0120.04812.34
5.4.200.0140.04712.34
5.4.190.0070.05212.34
5.4.180.0120.04312.34
5.4.170.0100.04812.35
5.4.160.0090.05112.34
5.4.150.0090.04912.34
5.4.140.0080.05012.02
5.4.130.0110.04012.02
5.4.120.0070.04011.97
5.4.110.0110.04111.96
5.4.100.0060.04811.97
5.4.90.0060.04211.96
5.4.80.0110.06211.96
5.4.70.0110.03811.96
5.4.60.0070.04011.96
5.4.50.0060.03711.96
5.4.40.0090.03711.95
5.4.30.0100.07111.95
5.4.20.0130.05011.95
5.4.10.0070.05911.95
5.4.00.0110.05411.43
5.3.290.0080.03812.80
5.3.280.0180.06912.71
5.3.270.0080.05512.72
5.3.260.0070.05712.71
5.3.250.0150.09212.72
5.3.240.0060.11512.72
5.3.230.0240.07212.70
5.3.220.0120.05212.68
5.3.210.0150.07512.68
5.3.200.0100.05212.68
5.3.190.0070.04312.68
5.3.180.0090.04012.67
5.3.170.0080.05412.67
5.3.160.0110.05012.67
5.3.150.0090.03412.67
5.3.140.0060.04812.66
5.3.130.0090.04312.66
5.3.120.0070.04412.66
5.3.110.0050.04112.65
5.3.100.0080.03812.12
5.3.90.0080.03712.08
5.3.80.0080.03512.08
5.3.70.0070.04012.07
5.3.60.0080.04612.06
5.3.50.0080.05512.00
5.3.40.0170.05812.00
5.3.30.0110.05411.96
5.3.20.0090.03911.72
5.3.10.0090.03711.70
5.3.00.0070.03911.68
5.2.170.0120.0559.18
5.2.160.0180.0899.19
5.2.150.0080.0449.18
5.2.140.0070.0459.17
5.2.130.0050.0449.13
5.2.120.0070.0439.13
5.2.110.0060.0379.14
5.2.100.0070.0489.14
5.2.90.0070.0419.14
5.2.80.0070.0319.13
5.2.70.0080.0419.13
5.2.60.0060.0329.09
5.2.50.0060.0309.06
5.2.40.0050.0339.03
5.2.30.0060.0299.00
5.2.20.0060.0289.00
5.2.10.0070.0308.92
5.2.00.0080.0358.78
5.1.60.0060.0318.07
5.1.50.0090.0238.06
5.1.40.0060.0258.04
5.1.30.0050.0328.39
5.1.20.0060.0328.41
5.1.10.0040.0278.14
5.1.00.0030.0278.14
5.0.50.0020.0226.61
5.0.40.0060.0176.47
5.0.30.0050.0506.29
5.0.20.0060.0216.26
5.0.10.0080.0206.24
5.0.00.0060.0296.23
4.4.90.0040.0164.78
4.4.80.0020.0164.75
4.4.70.0060.0124.76
4.4.60.0070.0134.76
4.4.50.0060.0144.77
4.4.40.0050.0254.71
4.4.30.0040.0164.76
4.4.20.0020.0194.85
4.4.10.0060.0144.85
4.4.00.0030.0264.76
4.3.110.0040.0154.67
4.3.100.0060.0134.67
4.3.90.0020.0204.64
4.3.80.0020.0284.58
4.3.70.0040.0144.63
4.3.60.0030.0164.63
4.3.50.0040.0204.63
4.3.40.0050.0324.54
4.3.30.0010.0233.28
4.3.20.0040.0203.25
4.3.10.0040.0173.22
4.3.00.0030.0239.31

preferences:
48.44 ms | 401 KiB | 5 Q