3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "&#195;&#x20ac;"; $string_result = "À"; $string = (html_entity_encode($string)); echo "<br>This: " . $string; echo "<br>Should become: " . ($string_result);

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.75
8.3.50.0110.00316.14
8.3.40.0070.00718.97
8.3.30.0110.00418.77
8.3.20.0070.00020.29
8.3.10.0050.00221.92
8.3.00.0040.00417.38
8.2.180.0110.00418.29
8.2.170.0110.00422.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00321.04
8.2.120.0030.00526.35
8.2.110.0000.00922.13
8.2.100.0070.00318.09
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.91
8.2.50.0060.00318.10
8.2.40.0000.00820.43
8.2.30.0060.00321.00
8.2.20.0000.00717.86
8.2.10.0000.00818.05
8.2.00.0040.00417.99
8.1.280.0040.01125.92
8.1.270.0040.00423.68
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0050.00522.30
8.1.230.0030.01019.15
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0050.00317.23
8.1.180.0020.00518.10
8.1.170.0030.00618.84
8.1.160.0000.00719.07
8.1.150.0040.00420.48
8.1.140.0070.00019.57
8.1.130.0050.00318.77
8.1.120.0000.00717.29
8.1.110.0070.00017.35
8.1.100.0020.00517.37
8.1.90.0000.00817.30
8.1.80.0000.00717.32
8.1.70.0050.00217.29
8.1.60.0000.00817.45
8.1.50.0030.00517.55
8.1.40.0000.00717.52
8.1.30.0000.00917.57
8.1.20.0000.00817.46
8.1.10.0000.00717.59
8.1.00.0080.00017.43
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0030.00318.37
8.0.270.0030.00317.11
8.0.260.0030.00316.88
8.0.250.0070.00016.99
8.0.240.0040.00416.97
8.0.230.0030.00616.98
8.0.220.0000.00616.76
8.0.210.0030.00316.76
8.0.200.0000.00616.96
8.0.190.0040.00416.84
8.0.180.0040.00416.79
8.0.170.0040.00416.84
8.0.160.0030.00516.86
8.0.150.0000.00716.91
8.0.140.0000.00716.79
8.0.130.0000.00513.24
8.0.120.0000.00816.67
8.0.110.0030.00316.79
8.0.100.0040.00416.66
8.0.90.0000.00716.90
8.0.80.0120.00316.83
8.0.70.0050.00316.80
8.0.60.0050.00316.75
8.0.50.0000.00716.94
8.0.30.0030.01316.89
8.0.20.0130.00717.40
8.0.10.0040.00416.86
8.0.00.0070.01016.63
7.4.330.0020.00315.55
7.4.320.0000.00716.44
7.4.300.0000.00616.47
7.4.290.0040.00416.44
7.4.280.0090.00016.54
7.4.270.0060.00016.55
7.4.260.0000.00716.34
7.4.250.0080.00016.57
7.4.240.0000.00716.49
7.4.230.0030.00316.40
7.4.220.0170.00016.49
7.4.210.0060.01316.44
7.4.200.0070.00016.48
7.4.160.0070.01416.46
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0110.00916.50
7.4.120.0090.01016.44
7.4.110.0070.01016.52
7.4.100.0100.00716.32
7.4.90.0090.00916.35
7.4.80.0110.00719.39
7.4.70.0090.01216.42
7.4.60.0080.01216.62
7.4.50.0070.00716.36
7.4.40.0080.00816.39
7.4.30.0120.00416.53
7.4.10.0070.01614.83
7.4.00.0150.00314.99
7.3.330.0000.00513.13
7.3.320.0000.00513.07
7.3.310.0030.00316.25
7.3.300.0030.00316.17
7.3.290.0090.00716.30
7.3.280.0070.00816.25
7.3.270.0180.00317.40
7.3.260.0080.00816.32
7.3.250.0110.01116.43
7.3.240.0080.01016.49
7.3.230.0100.00616.41
7.3.210.0060.00916.27
7.3.200.0080.00816.26
7.3.190.0100.00716.44
7.3.180.0060.01016.34
7.3.170.0040.01216.41
7.3.160.0090.01316.49
7.3.130.0080.01214.89
7.3.120.0000.01214.71
7.3.110.0040.01314.52
7.3.100.0030.01014.86
7.3.90.0000.01515.00
7.3.80.0030.00614.89
7.3.70.0040.00814.79
7.3.60.0040.00914.86
7.3.50.0110.00414.82
7.3.40.0000.00814.55
7.3.30.0030.01214.78
7.3.20.0070.00316.69
7.3.10.0060.00616.61
7.3.00.0060.00316.56
7.2.330.0060.01116.30
7.2.320.0130.00416.68
7.2.310.0090.00616.56
7.2.300.0100.01316.31
7.2.290.0110.00716.29
7.2.260.0030.01214.89
7.2.250.0120.00414.62
7.2.240.0040.01515.14
7.2.230.0070.01014.89
7.2.220.0100.00714.70
7.2.210.0000.01214.70
7.2.200.0030.00614.85
7.2.190.0100.00314.84
7.2.180.0110.00314.88
7.2.170.0060.00614.92
7.2.160.0030.01014.95
7.2.150.0060.00316.63
7.2.140.0100.00716.52
7.2.130.0070.00716.77
7.2.120.0040.01216.71
7.2.110.0030.01016.86
7.2.100.0120.00316.78
7.2.90.0000.01016.91
7.2.80.0060.00916.83
7.2.70.0080.00316.82
7.2.60.0050.01016.82
7.2.50.0090.00616.46
7.2.40.0000.01016.95
7.2.30.0030.01216.93
7.2.20.0110.00316.93
7.2.10.0070.00716.83
7.2.00.0220.01117.66
7.1.330.0040.00815.61
7.1.320.0130.00315.47
7.1.310.0030.01015.63
7.1.300.0070.00315.64
7.1.290.0070.00415.48
7.1.280.0040.00815.63
7.1.270.0040.00715.59
7.1.260.0030.01015.64
7.1.250.0070.00415.70
7.1.240.0040.00815.30
7.1.230.0100.00315.72
7.1.220.0040.00415.36
7.1.210.0030.00915.56
7.1.200.0030.01215.57
7.1.190.0040.00715.66
7.1.180.0090.00315.33
7.1.170.0080.00615.71
7.1.160.0000.01115.60
7.1.150.0000.01515.79
7.1.140.0030.01415.42
7.1.130.0040.01115.44
7.1.120.0000.01415.69
7.1.110.0120.00415.38
7.1.100.0040.00916.64
7.1.90.0070.00715.62
7.1.80.0060.00315.71
7.1.70.0040.00916.33
7.1.60.0150.01025.20
7.1.50.0170.00725.28
7.1.40.0220.01124.92
7.1.30.0280.00824.96
7.1.20.0220.00425.08
7.1.10.0140.01115.11
7.1.00.0070.01016.04
7.0.330.0030.00615.24
7.0.320.0040.00715.37
7.0.310.0000.01315.21
7.0.300.0060.00615.33
7.0.290.0070.00715.34
7.0.280.0030.00615.32
7.0.270.0030.01115.43
7.0.260.0030.01015.35
7.0.250.0070.00315.42
7.0.240.0070.01015.09
7.0.230.0040.00415.34
7.0.220.0080.00315.22
7.0.210.0060.00615.30
7.0.200.0120.00714.97
7.0.190.0190.00515.91
7.0.180.0070.00715.68
7.0.170.0240.01015.53
7.0.160.0060.01015.59
7.0.150.0020.01215.71
7.0.140.0080.00615.63
7.0.130.0050.00915.93
7.0.120.0030.01115.90
7.0.110.0050.00715.72
7.0.100.0040.00815.62
7.0.90.0060.00615.66
7.0.80.0060.00515.80
7.0.70.0050.01115.62
7.0.60.0050.01015.72
7.0.50.0050.01315.67
7.0.40.0030.01214.65
7.0.30.0050.01014.77
7.0.20.0070.00914.88
7.0.10.0050.00914.80
7.0.00.0000.01514.77
5.6.400.0060.00314.04
5.6.390.0050.00514.20
5.6.380.0100.00314.30
5.6.370.0060.00614.11
5.6.360.0100.00314.34
5.6.350.0070.00714.32
5.6.340.0060.01214.36
5.6.330.0040.00714.25
5.6.320.0040.00714.31
5.6.310.0040.00814.50
5.6.300.0040.01114.04
5.6.290.0040.01113.90
5.6.280.0000.01414.32
5.6.270.0060.00914.20
5.6.260.0110.00014.11
5.6.250.0140.00013.98
5.6.240.0060.00614.45
5.6.230.0000.01114.02
5.6.220.0030.01314.00
5.6.210.0100.00314.05
5.6.200.0070.01114.30
5.6.190.0030.00614.18
5.6.180.0070.01014.14
5.6.170.0100.00314.35
5.6.160.0060.00914.15
5.6.150.0120.00314.05
5.6.140.0030.01214.23
5.6.130.0060.00914.18
5.6.120.0040.00814.08
5.6.110.0090.00014.25
5.6.100.0070.01013.92
5.6.90.0080.00414.16
5.6.80.0030.01013.96
5.6.70.0040.00814.11
5.6.60.0040.01114.38
5.6.50.0000.01014.07
5.6.40.0070.00713.86
5.6.30.0000.01413.93
5.6.20.0040.01113.92
5.6.10.0040.01114.05
5.6.00.0030.00614.11

preferences:
47.65 ms | 401 KiB | 5 Q