3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HttpStatus { public static $ABC = 'abc'; public static $DEF = 'def'; } $abd = 'ABC'; $def = 'DEF'; echo HttpStatus::$abc; echo HttpStatus::${'ABC'};

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.70.0060.01316.63
8.3.60.0100.01016.75
8.3.50.0150.00321.93
8.3.40.0070.00718.51
8.3.30.0040.01118.89
8.3.20.0100.00320.36
8.3.10.0040.00421.77
8.3.00.0040.00421.68
8.2.180.0120.00918.66
8.2.170.0130.00322.96
8.2.160.0070.00720.33
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0060.00320.79
8.2.120.0080.00026.35
8.2.110.0100.00019.27
8.2.100.0090.00317.91
8.2.90.0020.00519.23
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0060.00317.80
8.2.50.0060.00618.09
8.2.40.0030.00620.49
8.2.30.0040.00419.27
8.2.20.0040.00717.73
8.2.10.0040.00417.93
8.2.00.0000.00718.07
8.1.280.0060.00925.92
8.1.270.0110.00423.99
8.1.260.0070.00328.09
8.1.250.0000.00728.09
8.1.240.0090.00021.28
8.1.230.0120.00017.46
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.40
8.1.160.0040.00420.66
8.1.150.0040.00719.01
8.1.140.0050.00319.49
8.1.130.0040.00417.58
8.1.120.0000.00717.39
8.1.110.0040.00417.43
8.1.100.0000.00817.46
8.1.90.0050.00317.37
8.1.80.0030.00517.38
8.1.70.0070.00017.23
8.1.60.0040.00417.50
8.1.50.0040.00417.45
8.1.40.0050.00317.53
8.1.30.0040.00417.57
8.1.20.0030.00517.70
8.1.10.0040.00417.54
8.1.00.0070.00017.39
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0070.00018.45
8.0.270.0040.00417.19
8.0.260.0060.00017.10
8.0.250.0030.00316.93
8.0.240.0040.00416.92
8.0.230.0040.00416.87
8.0.220.0040.00716.88
8.0.210.0030.00316.93
8.0.200.0000.00716.94
8.0.190.0040.00416.87
8.0.180.0070.00016.90
8.0.170.0060.00316.94
8.0.160.0000.00716.89
8.0.150.0060.00316.88
8.0.140.0030.00416.94
8.0.130.0030.00313.36
8.0.120.0030.00516.85
8.0.110.0050.00216.79
8.0.100.0040.00416.93
8.0.90.0040.00416.71
8.0.80.0060.01016.84
8.0.70.0000.00716.79
8.0.60.0070.00016.93
8.0.50.0000.00716.84
8.0.30.0130.00516.97
8.0.20.0110.00817.40
8.0.10.0040.00417.07
8.0.00.0100.01016.73
7.4.330.0020.00216.70
7.4.320.0000.00616.53
7.4.300.0080.00016.59
7.4.290.0070.00016.53
7.4.280.0000.00816.48
7.4.270.0030.00316.59
7.4.260.0000.00716.58
7.4.250.0030.00316.46
7.4.240.0000.00716.56
7.4.230.0040.00416.63
7.4.220.0060.01216.51
7.4.210.0040.01016.55
7.4.200.0030.00316.50
7.4.160.0130.00316.39
7.4.150.0070.01417.40
7.4.140.0140.00817.86
7.4.130.0120.00616.40
7.4.120.0120.00516.48
7.4.110.0100.00716.66
7.4.100.0100.01316.55
7.4.90.0190.00316.50
7.4.80.0150.00419.39
7.4.70.0000.01616.36
7.4.60.0090.00916.66
7.4.50.0070.01016.56
7.4.40.0070.01016.43
7.4.30.0170.00616.38
7.4.00.0090.00914.78
7.3.330.0000.00713.25
7.3.320.0000.00613.29
7.3.310.0000.00716.28
7.3.300.0030.00316.23
7.3.290.0000.00716.13
7.3.280.0070.01216.30
7.3.270.0130.00917.40
7.3.260.0120.00616.61
7.3.250.0100.00916.27
7.3.240.0090.00916.30
7.3.230.0110.00516.39
7.3.210.0060.01216.37
7.3.200.0060.01116.58
7.3.190.0060.00916.49
7.3.180.0090.00616.52
7.3.170.0100.01016.33
7.3.160.0090.01116.28
7.3.120.0070.00714.79
7.3.110.0130.00315.01
7.3.100.0040.01414.90
7.3.90.0030.01314.66
7.3.80.0090.00014.94
7.3.70.0030.01014.70
7.3.60.0030.01014.76
7.3.50.0000.01114.82
7.3.40.0060.01214.80
7.3.30.0000.01414.77
7.3.20.0000.01116.44
7.3.10.0080.00516.41
7.3.00.0080.00516.42
7.2.330.0110.00616.53
7.2.320.0130.00716.36
7.2.310.0110.01116.33
7.2.300.0100.00616.66
7.2.290.0100.00716.58
7.2.250.0060.01215.06
7.2.240.0090.00914.80
7.2.230.0000.01615.20
7.2.220.0080.00414.71
7.2.210.0060.00914.87
7.2.200.0000.01314.79
7.2.190.0030.00614.85
7.2.180.0060.00915.02
7.2.170.0000.01414.93
7.2.160.0070.01114.73
7.2.150.0070.00717.03
7.2.140.0080.00416.84
7.2.130.0060.01016.73
7.2.120.0050.01316.76
7.2.110.0060.00616.79
7.2.100.0080.01016.89
7.2.90.0050.00716.79
7.2.80.0080.00616.95
7.2.70.0040.00916.89
7.2.60.0090.00616.78
7.2.50.0100.00516.74
7.2.40.0000.01516.75
7.2.30.0080.00816.87
7.2.20.0030.01416.92
7.2.10.0070.00716.89
7.2.00.0040.00817.56
7.1.330.0110.00315.66
7.1.320.0030.00715.79
7.1.310.0030.01015.40
7.1.300.0080.00615.48
7.1.290.0110.00315.34
7.1.280.0030.01315.79
7.1.270.0040.00815.43
7.1.260.0100.00315.73
7.1.250.0050.00815.69
7.1.200.0040.01115.58
7.1.100.0040.01218.12
7.1.70.0030.00316.70
7.1.60.0120.00919.40
7.1.50.0160.00616.84
7.1.00.0030.07722.27
7.0.200.0480.00714.69
7.0.60.0130.07321.72
7.0.50.0130.06017.86
7.0.40.0100.05020.10
7.0.30.0170.04020.23
7.0.20.0370.07020.08
7.0.10.0030.04320.15
7.0.00.0170.07720.22
5.6.280.0000.04020.78
5.6.210.0130.05020.71
5.6.200.0200.07018.22
5.6.190.0070.07720.63
5.6.180.0300.03720.63
5.6.170.0070.05020.55
5.6.160.0030.08720.48
5.6.150.0170.06718.18
5.6.140.0030.06018.18
5.6.130.0130.06318.11
5.6.120.0070.06021.06
5.6.110.0100.08321.14
5.6.100.0070.08721.11
5.6.90.0170.07721.06
5.6.80.0030.07020.37
5.5.350.0230.08020.40
5.5.340.0100.07018.02
5.5.330.0070.04020.34
5.5.320.0200.06020.35
5.5.310.0330.06020.26
5.5.300.0070.03717.98
5.5.290.0170.06318.04
5.5.280.0130.07720.87
5.5.270.0030.05320.86
5.5.260.0100.07320.86
5.5.250.0100.06320.79
5.5.240.3430.04720.26

preferences:
52.33 ms | 401 KiB | 5 Q