3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '"Compilers are fun. They take nice, human readable languages like PHP or Hack and turn them into lean, mean, CPU executin&#039; turing machines. Some of these are simple enough a CS student can write one up in a weekend, some are the products of decades of fine tuning and careful architecting. Somewhere in that proud&hellip;"'; print html_entity_decode($str, ENT_QUOTES, 'UTF-8') . "\r\n"; print html_entity_decode($str, null, 'UTF-8') . "\r\n"; print html_entity_decode($str);

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.0060.00918.43
8.3.50.0100.01017.90
8.3.40.0090.00618.72
8.3.30.0030.01019.13
8.3.20.0030.00520.34
8.3.10.0050.00320.48
8.3.00.0050.00519.68
8.2.180.0090.01316.88
8.2.170.0070.00722.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00422.07
8.2.110.0100.00019.02
8.2.100.0000.01317.91
8.2.90.0040.00419.27
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0000.00818.05
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0030.00519.14
8.2.20.0040.00417.79
8.2.10.0040.00417.97
8.2.00.0000.00717.59
8.1.280.0130.00725.92
8.1.270.0040.00422.02
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00022.02
8.1.230.0000.01118.87
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0040.00418.74
8.1.160.0050.00221.89
8.1.150.0000.00718.79
8.1.140.0080.00017.49
8.1.130.0030.00317.89
8.1.120.0000.00717.35
8.1.110.0070.00017.34
8.1.100.0040.00417.50
8.1.90.0040.00417.46
8.1.80.0000.00717.37
8.1.70.0030.00317.43
8.1.60.0030.00717.61
8.1.50.0000.00817.45
8.1.40.0070.00417.42
8.1.30.0060.00317.50
8.1.20.0060.00317.51
8.1.10.0080.00017.48
8.1.00.0030.00617.34
8.0.300.0040.00420.09
8.0.290.0050.00316.63
8.0.280.0000.00818.45
8.0.270.0080.00017.22
8.0.260.0070.00017.25
8.0.250.0000.00716.89
8.0.240.0070.00016.87
8.0.230.0070.00016.94
8.0.220.0050.00216.92
8.0.210.0030.00316.90
8.0.200.0060.00016.87
8.0.190.0090.00016.93
8.0.180.0070.00016.76
8.0.170.0040.00416.94
8.0.160.0030.00316.98
8.0.150.0000.00716.86
8.0.140.0070.00016.75
8.0.130.0030.00313.33
8.0.120.0000.00916.83
8.0.110.0040.00416.78
8.0.100.0000.00816.84
8.0.90.0080.00016.73
8.0.80.0040.01116.82
8.0.70.0000.00716.76
8.0.60.0080.00016.64
8.0.50.0040.00416.63
8.0.30.0060.01617.03
8.0.20.0160.00717.40
8.0.10.0040.00416.90
8.0.00.0130.00716.69
7.4.330.0050.00015.01
7.4.320.0000.00616.44
7.4.300.0030.00316.54
7.4.290.0030.00316.58
7.4.280.0030.00616.53
7.4.270.0030.00316.51
7.4.260.0030.00316.53
7.4.250.0000.00716.43
7.4.240.0030.00516.57
7.4.230.0030.00316.44
7.4.220.0070.01016.48
7.4.210.0060.01316.58
7.4.200.0070.00016.52
7.4.160.0160.00016.43
7.4.150.0160.00317.40
7.4.140.0110.00617.86
7.4.130.0100.00616.56
7.4.120.0080.00916.47
7.4.110.0150.00316.58
7.4.100.0120.00416.56
7.4.90.0120.00416.41
7.4.80.0070.01016.43
7.4.70.0120.00616.50
7.4.60.0060.01016.53
7.4.50.0000.00916.18
7.4.40.0120.00916.36
7.4.30.0120.00416.55
7.4.00.0030.01114.64
7.3.330.0000.00612.96
7.3.320.0030.00312.97
7.3.310.0040.00416.14
7.3.300.0020.00516.23
7.3.290.0030.01116.21
7.3.280.0090.00816.20
7.3.270.0060.01117.40
7.3.260.0150.00416.59
7.3.250.0090.00716.23
7.3.240.0090.00916.42
7.3.230.0150.00316.53
7.3.210.0090.00816.54
7.3.200.0120.01219.39
7.3.190.0150.00616.52
7.3.180.0040.01316.57
7.3.170.0080.00816.27
7.3.160.0060.01016.27
7.2.330.0080.00816.45
7.2.320.0030.01916.65
7.2.310.0080.00816.56
7.2.300.0100.00716.20
7.2.290.0090.00616.44
7.2.00.0030.01019.49
7.1.100.0030.01018.23
7.1.70.0030.00716.88
7.1.60.0110.01419.32
7.1.50.0100.01616.94
7.1.00.0030.07722.35
7.0.200.0070.00016.76
7.0.140.0170.06021.99
7.0.70.4570.03719.82
7.0.60.0070.08019.96
7.0.50.0130.03717.85
7.0.40.0130.08020.07
7.0.30.0200.04720.30
7.0.20.0200.03720.13
7.0.10.0230.08320.02
7.0.00.0100.05320.11
5.6.280.0030.07321.07
5.6.210.0070.06720.45
5.6.200.0100.07018.18
5.6.190.0030.09020.39
5.6.180.0070.05720.59
5.6.170.0300.08020.44
5.6.160.0100.08720.37
5.6.150.0070.07718.15
5.6.140.0030.05018.12
5.6.130.0070.07318.18
5.6.120.0030.04021.04
5.6.110.0030.04320.97
5.6.100.0300.07321.10
5.6.90.0030.07320.96
5.6.80.0230.03320.40
5.6.70.0230.06720.51
5.5.350.0030.04320.42
5.5.340.0030.04018.02
5.5.330.0200.07720.37
5.5.320.0070.07720.07
5.5.310.0270.03320.41
5.5.300.0070.08017.91
5.5.290.0130.06717.88
5.5.280.0070.08720.67
5.5.270.0100.05020.75
5.5.260.0070.06720.76
5.5.250.0130.07320.54
5.5.240.0070.08320.25
5.4.450.0130.06019.54
5.4.440.0970.06319.46
5.4.430.0870.05019.63
5.4.420.0770.05719.48
5.4.410.0770.05719.35
5.4.400.1130.04319.26
5.4.390.1030.05019.08
5.4.380.0430.05018.68
5.4.370.0400.06018.56
5.4.360.0300.05318.74
5.4.350.0330.05318.65
5.4.340.0170.06018.78
5.4.320.0080.04412.45
5.4.310.0050.03912.45
5.4.300.0080.03712.45
5.4.290.0080.03712.45
5.4.280.0100.03112.34
5.4.270.0070.03512.34
5.4.260.0070.03512.34
5.4.250.0070.03612.35
5.4.240.0060.03512.35
5.4.230.0060.03712.34
5.4.220.0050.03712.34
5.4.210.0080.03312.34
5.4.200.0030.04412.34
5.4.190.0030.03912.34
5.4.180.0080.03412.33
5.4.170.0030.04412.34
5.4.160.0120.04412.34
5.4.150.0120.03712.34
5.4.140.0060.04712.02
5.4.130.0070.04012.01
5.4.120.0040.03611.96
5.4.110.0060.03711.96
5.4.100.0040.03611.96
5.4.90.0040.03811.96
5.4.80.0090.03311.96
5.4.70.0070.04811.96
5.4.60.0080.04011.96
5.4.50.0090.03311.96
5.4.40.0050.03511.95
5.4.30.0050.04211.95
5.4.20.0030.03811.95
5.4.10.0050.04111.95
5.4.00.0080.03911.43
5.3.290.0060.03812.80
5.3.280.0040.03912.70
5.3.270.0070.04912.73
5.3.260.0090.03912.72
5.3.250.0050.03712.72
5.3.240.0070.03612.72
5.3.230.0040.03912.71
5.3.220.0020.04012.68
5.3.210.0040.04112.68
5.3.200.0050.03612.68
5.3.190.0080.03912.68
5.3.180.0050.04912.68
5.3.170.0050.04412.67
5.3.160.0050.03612.68
5.3.150.0090.03812.67
5.3.140.0040.03812.66
5.3.130.0050.03912.66
5.3.120.0080.04112.65
5.3.110.0050.03912.66
5.3.100.0060.03512.12
5.3.90.0060.03512.09
5.3.80.0020.03912.07
5.3.70.0100.03112.08
5.3.60.0060.03512.06
5.3.50.0040.03712.00
5.3.40.0050.03612.00
5.3.30.0030.03711.94
5.3.20.0060.03511.72
5.3.10.0060.03411.69
5.3.00.0030.03811.68
5.2.170.0050.0299.18
5.2.160.0050.0289.18
5.2.150.0060.0299.18
5.2.140.0050.0299.18
5.2.130.0030.0309.13
5.2.120.0060.0279.13
5.2.110.0050.0289.14
5.2.100.0040.0289.14
5.2.90.0040.0299.14
5.2.80.0030.0319.14
5.2.70.0030.0319.14
5.2.60.0070.0279.09
5.2.50.0050.0319.06
5.2.40.0050.0289.04
5.2.30.0060.0349.01
5.2.20.0080.0369.00
5.2.10.0030.0328.93
5.2.00.0040.0298.79
5.1.60.0030.0258.07
5.1.50.0040.0248.06
5.1.40.0040.0248.05
5.1.30.0020.0278.40
5.1.20.0050.0258.43
5.1.10.0080.0228.15
5.1.00.0070.0238.15
5.0.50.0030.0206.63
5.0.40.0040.0186.49
5.0.30.0060.0326.30
5.0.20.0020.0216.27
5.0.10.0050.0206.25
5.0.00.0020.0316.23
4.4.90.0050.0164.78
4.4.80.0040.0234.75
4.4.70.0040.0204.76
4.4.60.0030.0194.75
4.4.50.0050.0154.77
4.4.40.0050.0244.71
4.4.30.0060.0164.76
4.4.20.0020.0224.84
4.4.10.0020.0214.85
4.4.00.0020.0264.76
4.3.110.0050.0164.67
4.3.100.0050.0174.66
4.3.90.0040.0214.64
4.3.80.0020.0264.58
4.3.70.0020.0174.63
4.3.60.0040.0154.63
4.3.50.0050.0144.63
4.3.40.0020.0254.54
4.3.30.0050.0193.29
4.3.20.0000.0263.27
4.3.10.0030.0153.19
4.3.00.0000.0236.98

preferences:
47.56 ms | 400 KiB | 5 Q