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 "<?php<br><br>\n"; echo "$<span class='red'>{$heart}</span> = \"love\";<br>\n"; echo "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.0100.01016.50
8.3.50.0100.01021.94
8.3.40.0070.00718.66
8.3.30.0090.00919.06
8.3.20.0040.00420.34
8.3.10.0040.00423.71
8.3.00.0000.00819.13
8.2.180.0060.00916.63
8.2.170.0090.00922.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00022.25
8.2.110.0080.00420.52
8.2.100.0070.00417.72
8.2.90.0060.00318.22
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0000.00918.05
8.2.50.0060.00318.07
8.2.40.0030.00619.95
8.2.30.0050.00318.12
8.2.20.0040.00417.75
8.2.10.0000.00718.12
8.2.00.0000.00717.73
8.1.280.0080.00825.92
8.1.270.0030.00522.14
8.1.260.0080.00026.35
8.1.250.0070.00328.09
8.1.240.0000.01022.02
8.1.230.0130.00020.97
8.1.220.0000.00817.75
8.1.210.0040.00418.94
8.1.200.0050.00517.25
8.1.190.0000.00817.35
8.1.180.0000.00819.01
8.1.170.0080.00018.45
8.1.160.0040.00421.92
8.1.150.0000.00718.64
8.1.140.0000.00717.46
8.1.130.0030.00317.82
8.1.120.0040.00417.50
8.1.110.0030.00617.40
8.1.100.0040.00417.44
8.1.90.0040.00417.45
8.1.80.0040.00417.32
8.1.70.0030.00317.45
8.1.60.0050.00317.57
8.1.50.0050.00317.35
8.1.40.0000.00717.52
8.1.30.0030.00517.59
8.1.20.0070.00017.64
8.1.10.0100.00017.59
8.1.00.0040.00417.47
8.0.300.0040.00420.06
8.0.290.0030.00617.04
8.0.280.0030.00318.55
8.0.270.0030.00317.32
8.0.260.0000.00617.36
8.0.250.0030.00317.04
8.0.240.0030.00317.01
8.0.230.0070.00016.85
8.0.220.0000.00716.83
8.0.210.0000.00716.83
8.0.200.0030.00316.91
8.0.190.0040.00416.86
8.0.180.0030.00516.87
8.0.170.0000.00716.81
8.0.160.0030.00316.90
8.0.150.0030.00516.87
8.0.140.0030.00316.89
8.0.130.0030.00313.33
8.0.120.0030.00616.96
8.0.110.0050.00216.93
8.0.100.0060.00316.85
8.0.90.0070.00016.85
8.0.80.0060.01316.92
8.0.70.0000.00716.86
8.0.60.0040.00416.95
8.0.50.0000.00717.01
8.0.30.0120.01016.97
8.0.20.0140.00317.40
8.0.10.0070.00016.78
8.0.00.0050.01316.88
7.4.330.0030.00315.07
7.4.320.0000.00616.60
7.4.300.0000.00716.59
7.4.290.0110.00016.46
7.4.280.0040.00416.49
7.4.270.0030.00516.58
7.4.260.0030.00316.49
7.4.250.0000.00816.51
7.4.240.0030.00416.55
7.4.230.0000.00716.50
7.4.220.0100.00716.37
7.4.210.0050.01016.55
7.4.200.0000.00716.48
7.4.190.0030.00316.46
7.4.160.0180.00316.55
7.4.150.0130.00417.40
7.4.140.0110.00717.86
7.4.130.0080.00816.51
7.4.120.0080.01216.54
7.4.110.0130.00716.48
7.4.100.0100.01016.59
7.4.90.0100.01016.57
7.4.80.0030.02119.39
7.4.70.0120.00316.51
7.4.60.0070.01116.29
7.4.50.0030.00316.46
7.4.40.0030.01316.33
7.4.30.0100.00716.42
7.4.00.0060.00914.96
7.3.330.0050.00013.01
7.3.320.0080.00013.05
7.3.310.0000.00616.22
7.3.300.0030.00316.23
7.3.290.0070.01116.38
7.3.280.0090.01016.32
7.3.270.0140.01017.40
7.3.260.0090.00916.28
7.3.250.0160.00116.32
7.3.240.0040.01816.48
7.3.230.0060.01216.39
7.3.210.0090.00916.31
7.3.200.0170.00019.39
7.3.190.0140.00316.31
7.3.180.0100.00616.51
7.3.170.0040.01216.48
7.3.160.0090.00616.34
7.3.120.0090.00314.93
7.3.10.0090.00316.70
7.3.00.0090.00316.41
7.2.330.0060.01016.64
7.2.320.0080.01216.79
7.2.310.0070.01516.34
7.2.300.0110.00716.66
7.2.290.0120.00616.61
7.2.130.0120.00916.41
7.2.120.0000.01316.81
7.2.110.0040.00816.64
7.2.100.0110.00416.43
7.2.90.0040.00816.66
7.2.80.0100.00716.82
7.2.70.0150.00316.71
7.2.60.0070.00716.68
7.2.50.0070.00716.91
7.2.40.0080.00816.79
7.2.30.0100.01116.66
7.2.20.0120.00316.64
7.2.10.0100.00316.79
7.2.00.0060.00618.17
7.1.250.0080.00815.50
7.1.100.0160.00417.77
7.1.70.0000.00716.80
7.1.60.0060.00619.46
7.1.50.0150.00316.63
7.1.00.0070.07322.28
7.0.200.0040.00416.53
7.0.140.0100.06722.18
7.0.60.0030.08020.00
7.0.50.0030.04317.90
7.0.40.0070.06020.09
7.0.30.0230.04720.21
7.0.20.0070.05020.12
7.0.10.0070.07720.02
7.0.00.0030.09020.12
5.6.280.0100.06721.04
5.6.210.0100.08320.50
5.6.200.0030.09018.22
5.6.190.0030.06320.27
5.6.180.0530.06320.35
5.6.170.0300.07720.50
5.6.160.0100.04720.54
5.6.150.0070.04018.21
5.6.140.0070.08318.20
5.6.130.0070.03718.19
5.6.120.0000.04321.00
5.6.110.0130.03320.95
5.6.100.0070.08021.01
5.6.90.0000.07721.03
5.6.80.0070.06020.41
5.5.350.0130.04020.41
5.5.340.0070.07718.02
5.5.330.0130.07720.19
5.5.320.0130.08720.26
5.5.310.0300.06720.26
5.5.300.0070.08317.91
5.5.290.0030.05017.89
5.5.280.0070.05320.76
5.5.270.0100.08720.95
5.5.260.0230.06320.86
5.5.250.0000.08320.58
5.5.240.0070.03720.04
5.4.450.0430.05719.61
5.4.440.0300.06019.24
5.4.430.0370.06019.48
5.4.420.0400.05319.48
5.4.410.0230.08019.48
5.4.400.0370.05319.31
5.4.390.0300.05019.21
5.4.380.0270.05718.46
5.4.370.0370.05318.65
5.4.360.0370.05318.74
5.4.350.0300.05318.80
5.4.340.0300.05018.68
5.4.320.0070.03512.46
5.4.310.0060.04412.45
5.4.300.0050.03712.46
5.4.290.0100.05712.45
5.4.280.0080.05512.35
5.4.270.0150.04412.35
5.4.260.0120.05112.35
5.4.250.0150.04812.34
5.4.240.0150.05612.35
5.4.230.0090.06212.34
5.4.220.0110.05012.34
5.4.210.0100.06112.34
5.4.200.0190.05512.34
5.4.190.0090.05012.34
5.4.180.0100.04212.34
5.4.170.0090.05712.35
5.4.160.0070.04212.35
5.4.150.0080.03612.34
5.4.140.0110.03512.03
5.4.130.0080.03512.02
5.4.120.0030.04111.97
5.4.110.0100.04211.96
5.4.100.0090.04511.97
5.4.90.0220.06711.96
5.4.80.0180.07511.96
5.4.70.0090.03911.96
5.4.60.0140.04811.96
5.4.50.0160.03711.96
5.4.40.0100.04011.95
5.4.30.0120.04311.95
5.4.20.0110.04211.95
5.4.10.0120.03911.95
5.4.00.0050.04111.44
5.3.290.0090.03712.80
5.3.280.0110.04012.71
5.3.270.0190.06012.72
5.3.260.0110.06912.72
5.3.250.0160.09912.72
5.3.240.0210.07312.72
5.3.230.0110.04912.71
5.3.220.0130.06612.68
5.3.210.0080.05012.68
5.3.200.0110.04912.68
5.3.190.0090.05412.68
5.3.180.0130.04812.67
5.3.170.0080.04912.66
5.3.160.0100.04112.68
5.3.150.0080.03612.68
5.3.140.0110.03912.66
5.3.130.0090.04212.66
5.3.120.0110.06012.66
5.3.110.0190.04712.66
5.3.100.0120.05412.12
5.3.90.0090.03812.08
5.3.80.0070.04112.07
5.3.70.0090.03712.08
5.3.60.0090.04312.06
5.3.50.0090.04912.00
5.3.40.0060.03812.00
5.3.30.0050.03711.95
5.3.20.0060.05411.72
5.3.10.0070.04311.69
5.3.00.0100.04711.68
5.2.170.0070.0429.18
5.2.160.0090.0329.18
5.2.150.0020.0369.18
5.2.140.0050.0339.18
5.2.130.0060.0409.13
5.2.120.0060.0309.13
5.2.110.0100.0529.14
5.2.100.0080.0339.13
5.2.90.0080.0419.14
5.2.80.0080.0419.13
5.2.70.0090.0379.13
5.2.60.0080.0299.09
5.2.50.0030.0359.05
5.2.40.0060.0389.04
5.2.30.0060.0429.01
5.2.20.0050.0419.00
5.2.10.0070.0378.92
5.2.00.0030.0448.78
5.1.60.0040.0368.07
5.1.50.0020.0338.06
5.1.40.0020.0278.04
5.1.30.0050.0258.39
5.1.20.0040.0268.42
5.1.10.0060.0248.14
5.1.00.0030.0278.14
5.0.50.0050.0216.62
5.0.40.0030.0226.48
5.0.30.0050.0336.29
5.0.20.0020.0236.26
5.0.10.0040.0246.24
5.0.00.0050.0366.23
4.4.90.0030.0224.78
4.4.80.0040.0224.75
4.4.70.0000.0214.75
4.4.60.0050.0154.75
4.4.50.0030.0174.77
4.4.40.0050.0254.71
4.4.30.0040.0174.75
4.4.20.0030.0174.84
4.4.10.0040.0174.85
4.4.00.0020.0284.76
4.3.110.0020.0194.67
4.3.100.0050.0164.66
4.3.90.0020.0164.63
4.3.80.0050.0244.58
4.3.70.0040.0224.63
4.3.60.0050.0204.63
4.3.50.0010.0244.63
4.3.40.0000.0364.53
4.3.30.0020.0213.28
4.3.20.0020.0213.26
4.3.10.0020.0223.22
4.3.00.0130.0178.93

preferences:
37.8 ms | 401 KiB | 5 Q