3v4l.org

run code in 500+ PHP versions simultaneously
<?php // relaxed syntax is not possible with constants // const PROTECTED = 'instanity'; class x { // relaxed syntax is possible with class constants private const string public = 'protected'; }

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.5.60.0070.01016.64
8.5.50.0140.00616.64
8.5.30.0090.00719.73
8.5.20.0060.01220.11
8.5.10.0110.00616.50
8.5.00.0140.01119.80
8.4.210.0140.00821.32
8.4.180.0120.01020.57
8.4.170.0080.01323.93
8.4.160.0170.00723.76
8.4.150.0080.00516.83
8.4.140.0100.01017.14
8.4.130.0090.00919.36
8.4.120.0120.00820.36
8.4.110.0130.00822.25
8.4.100.0070.00417.21
8.4.90.0120.00517.41
8.4.80.0110.01017.66
8.4.70.0030.00519.41
8.4.60.0430.00717.04
8.4.50.0400.00717.29
8.4.40.0380.01016.96
8.4.30.0360.01317.11
8.4.20.0330.00817.46
8.4.10.0410.01017.28
8.3.300.0120.00820.76
8.3.290.0100.01120.80
8.3.280.0120.01018.26
8.3.270.0100.00916.52
8.3.260.0100.00516.62
8.3.250.0100.00919.04
8.3.240.0060.00317.18
8.3.230.0060.00316.59
8.3.220.0120.00716.70
8.3.210.0110.01016.69
8.3.200.0380.00616.45
8.3.190.0300.00816.45
8.3.180.0340.01216.30
8.3.170.0380.00916.34
8.3.160.0400.01116.14
8.3.150.0390.00516.36
8.3.140.0400.00616.25
8.3.130.0370.00716.14
8.3.120.0320.01016.36
8.3.110.0300.01016.14
8.3.100.0360.01116.55
8.3.90.0360.01216.36
8.3.80.0390.00816.14
8.3.70.0400.00716.23
8.3.60.0410.00516.34
8.3.50.0370.00716.52
8.3.40.0280.00917.23
8.3.30.0310.00717.12
8.3.20.0400.00517.30
8.3.10.0400.01017.22
8.3.00.0140.01017.27
8.2.300.0120.00818.73
8.2.290.0070.00420.67
8.2.280.0320.00616.46
8.2.270.0320.00916.47
8.2.260.0330.00516.59
8.2.250.0220.00816.68
8.2.240.0270.01216.45
8.2.230.0260.01416.52
8.2.220.0330.01116.33
8.2.210.0290.00416.43
8.2.200.0240.00616.41
8.2.190.0330.00416.67
8.2.180.0260.01116.44
8.2.170.0320.00917.73
8.2.160.0390.00417.56
8.2.150.0360.00617.44
8.2.140.0370.00717.00
8.2.130.0330.00917.35
8.2.120.0290.00817.34
8.2.110.0330.00917.30
8.2.100.0270.01317.42
8.2.90.0320.00917.39
8.2.80.0300.01017.39
8.2.70.0330.01117.15
8.2.60.0310.01017.40
8.2.50.0310.01117.18
8.2.40.0280.01017.51
8.2.30.0320.00717.32
8.2.20.0300.01417.39
8.2.10.0190.00417.36
8.2.00.0260.00717.34
8.1.340.0120.00819.80

preferences:
50.68 ms | 846 KiB | 5 Q