3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('X', 500); define('Y', 5E2); define('Z', (int) 5E2); class MyClass { const A = 500; const B = 5E2; const C = 200 + 300; } var_dump(gettype(MyClass::A)); var_dump(gettype(MyClass::B)); var_dump(gettype(MyClass::C));

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.0100.01018.30
8.3.50.0110.00418.07
8.3.40.0040.01118.59
8.3.30.0110.00318.43
8.3.20.0070.00020.20
8.3.10.0030.00323.65
8.3.00.0040.00419.14
8.2.180.0120.00618.42
8.2.170.0060.01222.96
8.2.160.0110.00318.91
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.47
8.2.120.0070.00026.35
8.2.110.0040.00419.24
8.2.100.0100.00817.49
8.2.90.0080.00020.47
8.2.80.0040.00420.41
8.2.70.0040.00417.50
8.2.60.0040.00419.17
8.2.50.0040.00418.10
8.2.40.0000.00820.59
8.2.30.0000.00719.18
8.2.20.0030.00517.52
8.2.10.0000.00717.83
8.2.00.0030.00517.79
8.1.280.0070.01025.92
8.1.270.0000.00723.93
8.1.260.0030.00528.09
8.1.250.0070.00028.09
8.1.240.0080.00322.04
8.1.230.0070.00420.97
8.1.220.0080.00017.74
8.1.210.0040.00418.96
8.1.200.0000.00917.10
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0050.00518.70
8.1.160.0030.00618.89
8.1.150.0040.00418.80
8.1.140.0000.01119.44
8.1.130.0030.00317.48
8.1.120.0050.00217.35
8.1.110.0040.00417.20
8.1.100.0000.00717.23
8.1.90.0030.00517.30
8.1.80.0050.00317.27
8.1.70.0030.00317.21
8.1.60.0000.00817.32
8.1.50.0030.00517.27
8.1.40.0040.00417.39
8.1.30.0060.00317.39
8.1.20.0040.00417.46
8.1.10.0030.00517.39
8.1.00.0030.00517.38
8.0.300.0050.00320.14
8.0.290.0000.00716.75
8.0.280.0050.00318.24
8.0.270.0070.00016.80
8.0.260.0070.00017.13
8.0.250.0070.00016.89
8.0.240.0000.00716.87
8.0.230.0070.00016.77
8.0.220.0000.00716.68
8.0.210.0040.00416.83
8.0.200.0040.00416.87
8.0.190.0000.01116.92
8.0.180.0050.00316.79
8.0.170.0020.00516.82
8.0.160.0000.00816.82
8.0.150.0070.00016.64
8.0.140.0070.00016.73
8.0.130.0050.00013.21
8.0.120.0040.00416.80
8.0.110.0070.00016.72
8.0.100.0060.00316.70
8.0.90.0000.00816.78
8.0.80.0090.00616.84
8.0.70.0050.00316.87
8.0.60.0070.00016.84
8.0.50.0040.00416.79
8.0.30.0090.00817.05
8.0.20.0120.00917.40
8.0.10.0070.00016.83
8.0.00.0090.00916.43
7.4.330.0050.00015.08
7.4.320.0030.00316.32
7.4.300.0000.00816.45
7.4.290.0030.00316.35
7.4.280.0030.00616.21
7.4.270.0030.00316.51
7.4.260.0000.00616.34
7.4.250.0060.00316.23
7.4.240.0040.00416.33
7.4.230.0000.00716.34
7.4.220.0120.00816.37
7.4.210.0060.01316.46
7.4.200.0050.00216.56
7.4.160.0060.00916.33
7.4.150.0170.00417.40
7.4.140.0060.01117.86
7.4.130.0110.00716.45
7.4.120.0070.01216.30
7.4.110.0070.01016.41
7.4.100.0130.01016.41
7.4.90.0150.00616.19
7.4.80.0120.00619.39
7.4.70.0110.00716.27
7.4.60.0060.01416.20
7.4.50.0060.00916.19
7.4.40.0100.01116.16
7.4.30.0060.01016.42
7.4.10.0030.01414.53
7.4.00.0050.01114.85
7.3.330.0030.00313.20
7.3.320.0030.00213.00
7.3.310.0030.00316.31
7.3.300.0030.00316.18
7.3.290.0080.00716.16
7.3.280.0080.00916.21
7.3.270.0100.00717.40
7.3.260.0060.01216.14
7.3.250.0110.01116.19
7.3.240.0090.00716.35
7.3.230.0080.00816.39
7.3.210.0070.01016.21
7.3.200.0080.00816.11
7.3.190.0090.00916.35
7.3.180.0000.01716.46
7.3.170.0080.00816.18
7.3.160.0140.00816.17
7.3.130.0030.01314.73
7.3.120.0090.00914.71
7.3.110.0060.00914.71
7.3.100.0060.00614.56
7.3.90.0080.00814.51
7.3.80.0070.00714.38
7.3.70.0000.01314.57
7.3.60.0000.01414.53
7.3.50.0030.00614.50
7.3.40.0120.00014.42
7.3.30.0060.00314.70
7.3.20.0090.00316.47
7.3.10.0040.01016.56
7.3.00.0060.00816.30
7.2.330.0040.01316.57
7.2.320.0050.01116.57
7.2.310.0140.00616.50
7.2.300.0110.00616.44
7.2.290.0060.01216.66
7.2.260.0040.01115.03
7.2.250.0090.00915.09
7.2.240.0000.01315.11
7.2.230.0030.01014.96
7.2.220.0060.00314.68
7.2.210.0060.00915.18
7.2.200.0090.00014.83
7.2.190.0030.01014.65
7.2.180.0060.00314.87
7.2.170.0040.01114.91
7.2.160.0090.00314.68
7.2.150.0000.00916.95
7.2.140.0040.01116.78
7.2.130.0080.00816.85
7.2.120.0050.00916.74
7.2.110.0080.00916.62
7.2.100.0140.00516.74
7.2.90.0070.00516.78
7.2.80.0070.01116.82
7.2.70.0030.01016.96
7.2.60.0020.01416.91
7.2.50.0110.00316.63
7.2.40.0030.00816.70
7.2.30.0020.01116.69
7.2.20.0090.00516.82
7.2.10.0070.00416.80
7.2.00.0070.00817.46
7.1.330.0060.00915.88
7.1.320.0060.00315.51
7.1.310.0040.00815.51
7.1.300.0030.01215.70
7.1.290.0030.00615.72
7.1.280.0040.01115.75
7.1.270.0060.00315.71
7.1.260.0070.01115.86
7.1.250.0090.00415.53
7.1.240.0060.00615.38
7.1.230.0130.00715.47
7.1.220.0150.00615.46
7.1.210.0070.01115.80
7.1.200.0100.00315.71
7.1.190.0000.01415.82
7.1.180.0000.01515.66
7.1.170.0030.01015.84
7.1.160.0030.01015.70
7.1.150.0070.00415.45
7.1.140.0060.01015.71
7.1.130.0000.01315.90
7.1.120.0000.00915.86
7.1.110.0040.01415.82
7.1.100.0070.00715.84
7.1.90.0000.00915.70
7.1.80.0030.00915.77
7.1.70.0020.01016.32
7.1.60.0030.00716.44
7.1.50.0090.00015.80
7.1.40.0030.00615.74
7.1.30.0070.00315.67
7.1.20.0030.00715.80
7.1.10.0030.00715.32
7.1.00.0060.04119.22
7.0.330.0030.00915.35
7.0.320.0060.01014.98
7.0.310.0000.00915.19
7.0.300.0030.00615.05
7.0.290.0040.00415.34
7.0.280.0110.00715.06
7.0.270.0080.00015.24
7.0.260.0060.01015.45
7.0.250.0000.01715.37
7.0.240.0000.01315.20
7.0.230.0050.00315.33
7.0.220.0090.00615.32
7.0.210.0090.00315.24
7.0.200.0020.01315.85
7.0.190.0000.01315.09
7.0.180.0040.00415.54
7.0.170.0000.01215.28
7.0.160.0100.00315.49
7.0.150.0090.00015.25
7.0.140.0080.00015.38
7.0.130.0070.01015.18
7.0.120.0060.01015.49
7.0.110.0100.00315.47
7.0.100.0070.00715.40
7.0.90.0040.00415.19
7.0.80.0280.03517.69
7.0.70.0400.03417.65
7.0.60.0500.02517.64
7.0.50.0370.03718.01
7.0.40.0380.03816.88
7.0.30.0410.03316.84
7.0.20.0450.03916.87
7.0.10.0430.03316.89
7.0.00.0450.03216.70
5.6.400.0070.01013.90
5.6.390.0000.01414.24
5.6.380.0070.01413.98
5.6.370.0070.00714.13
5.6.360.0070.00714.04
5.6.350.0000.01414.58
5.6.340.0070.00714.40
5.6.330.0040.00814.14
5.6.320.0040.01413.93
5.6.310.0060.00614.10
5.6.300.0000.01514.23
5.6.290.0070.00414.54
5.6.280.0030.04217.60
5.6.270.0070.00713.99
5.6.260.0030.01014.30
5.6.250.0000.00814.30
5.6.240.0090.00314.31
5.6.230.0000.01613.97
5.6.220.0330.03317.55
5.6.210.0410.03117.32
5.6.200.0330.03817.69
5.6.190.0370.03217.58
5.6.180.0400.03517.63
5.6.170.0400.03317.48
5.6.160.0400.03017.60
5.6.150.0410.03017.73
5.6.140.0450.03617.64
5.6.130.0300.03717.63
5.6.120.0080.03617.70
5.6.110.0180.03517.55
5.6.100.0280.03617.68
5.6.90.0350.03817.60
5.6.80.0370.02817.30
5.6.70.0340.03317.37
5.6.60.0250.03917.32
5.6.50.0230.03617.31
5.6.40.0390.03917.34
5.6.30.0350.03017.46
5.6.20.0430.03517.22
5.6.10.0410.02517.43
5.6.00.0370.02817.30
5.5.380.0090.00913.98
5.5.370.0060.00614.09
5.5.360.0440.03817.08
5.5.350.0270.04017.24
5.5.340.0370.04217.45
5.5.330.0310.03517.55
5.5.320.0430.03317.33
5.5.310.0430.03517.14
5.5.300.0400.02817.43
5.5.290.0320.03717.48
5.5.280.0090.03617.55
5.5.270.0440.02717.44
5.5.260.0350.02817.42
5.5.250.0360.02717.20
5.5.240.0390.03417.09
5.5.230.0320.03317.21
5.5.220.0300.03516.85
5.5.210.0300.03317.02
5.5.200.0340.03016.98
5.5.190.0350.03016.93
5.5.180.0420.03317.10
5.5.170.0110.00313.88
5.5.160.0410.02217.03
5.5.150.0340.02817.02
5.5.140.0330.03017.01
5.5.130.0340.03717.13
5.5.120.0330.03617.03
5.5.110.0300.03417.12
5.5.100.0360.03017.01
5.5.90.0320.03016.90
5.5.80.0300.03417.05
5.5.70.0380.02516.94
5.5.60.0350.03216.95
5.5.50.0340.02816.94
5.5.40.0320.02916.94
5.5.30.0270.03217.02
5.5.20.0330.03017.03
5.5.10.0380.03816.70
5.5.00.0300.03216.77

preferences:
67.53 ms | 401 KiB | 5 Q