3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); class Test { static $_variable ="a";// ['something']; static public function runHtmlEntities() { return htmlentities(self::$_variable); } } echo Test::runHtmlEntities();

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.0070.00718.40
8.3.50.0070.00718.33
8.3.40.0080.00818.66
8.3.30.0120.00318.71
8.3.20.0030.00619.05
8.3.10.0000.00721.87
8.3.00.0050.00223.53
8.2.180.0100.00618.29
8.2.170.0060.00922.96
8.2.160.0070.00719.29
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00719.33
8.2.120.0000.00826.35
8.2.110.0100.00018.03
8.2.100.0080.00417.72
8.2.90.0000.00819.27
8.2.80.0030.00517.97
8.2.70.0080.00017.91
8.2.60.0030.00617.92
8.2.50.0040.00418.10
8.2.40.0060.00319.53
8.2.30.0000.00919.13
8.2.20.0030.00618.06
8.2.10.0000.00817.94
8.2.00.0030.00319.19
8.1.280.0140.00025.92
8.1.270.0080.00021.97
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0060.00323.95
8.1.230.0030.00920.95
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0090.00016.99
8.1.190.0000.00817.40
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00818.67
8.1.150.0030.00518.76
8.1.140.0000.00717.61
8.1.130.0000.00719.04
8.1.120.0040.00417.18
8.1.110.0040.00417.22
8.1.100.0070.00017.33
8.1.90.0040.00417.31
8.1.80.0000.00717.20
8.1.70.0070.00317.18
8.1.60.0040.00417.52
8.1.50.0040.00817.47
8.1.40.0040.00417.48
8.1.30.0040.00417.61
8.1.20.0040.00417.42
8.1.10.0040.00417.55
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0000.00718.32
8.0.270.0100.00017.20
8.0.260.0030.00317.20
8.0.250.0080.00316.96
8.0.240.0040.00416.85
8.0.230.0040.00416.79
8.0.220.0000.00716.79
8.0.210.0000.00716.73
8.0.200.0030.00316.87
8.0.190.0070.00016.82
8.0.180.0090.00316.76
8.0.170.0000.00816.85
8.0.160.0000.00716.73
8.0.150.0000.00816.66
8.0.140.0050.00316.72
8.0.130.0030.00313.20
8.0.120.0050.00316.70
8.0.110.0000.00716.77
8.0.100.0000.00716.63
8.0.90.0000.00716.55
8.0.80.0070.01016.70
8.0.70.0000.00816.70
8.0.60.0050.00316.60
8.0.50.0000.00816.71
8.0.30.0100.00917.08
8.0.20.0120.00917.40
8.0.10.0050.00317.01
8.0.00.0080.01016.74
7.4.330.0030.00316.83
7.4.320.0030.00316.39
7.4.300.0060.00316.52
7.4.290.0040.00316.52
7.4.280.0040.00416.43
7.4.270.0070.00016.52
7.4.260.0040.00416.35
7.4.250.0000.00716.55
7.4.240.0050.00416.46
7.4.230.0030.00316.40
7.4.220.0000.00716.51
7.4.210.0050.01116.48
7.4.200.0070.00016.56
7.4.160.0090.00716.45
7.4.140.0100.01117.86
7.4.130.0080.00816.40
7.4.120.0090.00916.42
7.4.110.0110.00616.47
7.4.100.0070.01016.43
7.4.90.0110.00716.42
7.4.80.0090.00919.39
7.4.70.0100.00716.33
7.4.60.0100.00816.41
7.4.50.0000.01816.35
7.4.40.0060.01516.41
7.4.00.0040.01114.64
7.3.330.0050.00013.29
7.3.320.0000.00513.22
7.3.310.0040.00416.33
7.3.300.0000.00716.36
7.3.290.0000.00716.21
7.3.280.0100.00716.30
7.3.260.0100.00816.28
7.3.240.0120.00516.36
7.3.230.0150.00616.47
7.3.210.0100.00716.52
7.3.200.0160.00516.31
7.3.190.0000.01516.36
7.3.180.0090.00616.54
7.3.170.0090.00616.54
7.3.160.0090.00916.35
7.2.330.0090.00916.69
7.2.320.0210.02716.75
7.2.310.0090.00916.56
7.2.300.0060.00916.48
7.2.290.0120.01216.71
7.2.70.0420.00414.89
7.2.60.0300.00714.41
7.2.50.0330.00714.66
7.2.40.0480.01214.74
7.2.30.0100.00714.87
7.2.20.0230.01214.62
7.2.10.0340.00714.48
7.2.00.0530.01314.54
7.1.200.0120.00015.57
7.1.170.0290.00913.79
7.1.160.0140.00613.82
7.1.150.0280.00713.71
7.1.140.0410.01013.57
7.1.130.0480.00313.79
7.1.120.0320.00913.66
7.1.110.0310.00913.57
7.1.100.0300.00013.80
7.1.90.0310.00913.53
7.1.80.0300.00813.31
7.1.70.1760.00313.74
7.1.60.0520.01731.68
7.1.50.0530.01831.44
7.1.40.0410.00931.72
7.1.30.0410.01431.67
7.1.20.0480.01731.90
7.1.10.0220.00813.76
7.1.00.0220.00613.78

preferences:
63.21 ms | 401 KiB | 5 Q