3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ const TYPE = 'A'; public function getType(){ return self::TYPE; } } class B extends A{ const TYPE = 'B'; } print_r((new B)->getType());

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.130.0070.00418.21
8.3.120.0080.00018.90
8.3.110.0090.00020.94
8.3.100.0060.00324.06
8.3.90.0140.00026.77
8.3.80.0060.00317.97
8.3.70.0090.01218.21
8.3.60.0090.01218.56
8.3.50.0090.00717.42
8.3.40.0040.01118.34
8.3.30.0090.00918.55
8.3.20.0080.00018.65
8.3.10.0040.00423.54
8.3.00.0040.00420.64
8.2.250.0060.00618.63
8.2.240.0100.00017.11
8.2.230.0070.00422.58
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0090.00016.25
8.2.190.0120.00316.78
8.2.180.0160.00316.50
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0000.00924.18
8.2.140.0070.00024.66
8.2.130.0070.00019.64
8.2.120.0070.00026.35
8.2.110.0090.00019.30
8.2.100.0120.00017.93
8.2.90.0080.00017.63
8.2.80.0050.00317.97
8.2.70.0030.00517.80
8.2.60.0040.00417.97
8.2.50.0030.00518.10
8.2.40.0040.00419.29
8.2.30.0000.00719.01
8.2.20.0040.00417.87
8.2.10.0000.00719.50
8.2.00.0050.00317.58
8.1.300.0070.01419.96
8.1.290.0090.00030.84
8.1.280.0180.00325.92
8.1.270.0030.00618.75
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00320.98
8.1.230.0070.00417.64
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.46
8.1.160.0060.00318.76
8.1.150.0070.00018.71
8.1.140.0050.00323.91
8.1.130.0040.00419.98
8.1.120.0020.00517.30
8.1.110.0040.00417.27
8.1.100.0000.00717.24
8.1.90.0000.00717.22
8.1.80.0040.00417.34
8.1.70.0040.00417.38
8.1.60.0040.00817.34
8.1.50.0030.00717.39
8.1.40.0000.00817.46
8.1.30.0000.00817.48
8.1.20.0060.00317.50
8.1.10.0040.00417.45
8.1.00.0000.00817.38
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0040.00418.30
8.0.270.0050.00217.13
8.0.260.0030.00320.19
8.0.250.0070.00016.91
8.0.240.0040.00416.80
8.0.230.0000.00716.70
8.0.220.0080.00016.80
8.0.210.0070.00016.66
8.0.200.0080.00016.81
8.0.190.0030.00516.83
8.0.180.0040.00416.80
8.0.170.0030.00516.79
8.0.160.0000.00716.67
8.0.150.0030.00316.73
8.0.140.0030.00516.69
8.0.130.0000.00713.28
8.0.120.0070.00016.66
8.0.110.0030.00616.79
8.0.100.0000.00816.82
8.0.90.0040.00416.77
8.0.80.0080.00916.75
8.0.70.0030.00316.71
8.0.60.0070.00016.73
8.0.50.0050.00316.58
8.0.30.0100.00817.07
8.0.20.0130.00517.40
8.0.10.0040.00416.67
8.0.00.0120.00716.62
7.4.330.0030.00315.55
7.4.320.0060.00016.29
7.4.300.0030.00316.41
7.4.290.0030.00316.34
7.4.280.0040.00316.38
7.4.270.0040.00416.45
7.4.260.0070.00016.42
7.4.250.0030.00616.45
7.4.240.0000.00816.57
7.4.230.0040.00416.33
7.4.220.0050.00316.49
7.4.210.0090.00916.51
7.4.200.0070.00016.28
7.4.160.0070.01116.48
7.4.140.0090.00917.86
7.4.130.0150.00416.27
7.4.120.0100.00916.47
7.4.110.0100.01016.47
7.4.100.0120.00816.36
7.4.90.0070.01016.31
7.4.80.0120.00619.39
7.4.70.0060.01216.45
7.4.60.0100.01016.46
7.4.50.0030.01416.48
7.4.40.0030.01416.33
7.4.10.0130.00716.40
7.4.00.0070.01015.79
7.3.330.0000.00613.04
7.3.320.0000.00513.23
7.3.310.0030.00316.21
7.3.300.0030.00316.10
7.3.290.0000.00616.28
7.3.280.0080.00716.22
7.3.260.0100.00916.39
7.3.240.0110.00916.24
7.3.230.0090.00616.20
7.3.210.0110.00516.46
7.3.200.0130.00916.16
7.3.190.0030.01316.34
7.3.180.0120.00616.48
7.3.170.0090.00616.51
7.3.160.0090.00616.16
7.3.130.0070.01016.49
7.3.120.0030.01216.12
7.3.110.0110.00416.29
7.3.100.0000.01516.44
7.3.90.0000.01316.11
7.3.80.0030.00916.35
7.3.70.0070.00716.20
7.3.60.0030.01016.00
7.3.50.0000.00916.19
7.3.40.0040.00716.21
7.3.30.0000.01516.16
7.3.20.0030.00618.00
7.3.10.0090.00417.24
7.3.00.0050.00717.28
7.2.330.0030.01416.66
7.2.320.0040.01316.23
7.2.310.0040.01516.56
7.2.300.0080.00816.16
7.2.290.0080.00816.66
7.2.260.0100.00716.38
7.2.250.0100.00916.63
7.2.240.0060.00616.22
7.2.230.0060.00616.31
7.2.220.0070.00716.45
7.2.210.0030.00716.14
7.2.200.0030.00616.55
7.2.190.0060.00916.18
7.2.180.0070.00716.39
7.2.170.0040.00716.25
7.2.160.0090.00616.32
7.2.150.0070.00718.32
7.2.140.0060.00818.01
7.2.130.0050.01017.37
7.2.120.0030.00917.46
7.2.110.0070.00717.18
7.2.100.0080.00916.98
7.2.90.0040.01017.12
7.2.80.0060.00917.15
7.2.70.0040.00917.26
7.2.60.0040.01217.14
7.2.50.0060.01017.21
7.2.40.0060.00717.17
7.2.30.0080.00817.13
7.2.20.0050.00917.25
7.2.10.0060.00817.19
7.2.00.0020.00917.16
7.1.330.0130.00317.21
7.1.320.0030.00717.11
7.1.310.0060.00317.50
7.1.300.0090.00917.30
7.1.290.0060.00317.19
7.1.280.0030.01017.38
7.1.270.0120.00317.36
7.1.260.0060.00317.19
7.1.250.0070.00716.35
7.1.240.0100.00317.23
7.1.230.0050.01016.25
7.1.220.0040.01116.28
7.1.210.0040.00916.26
7.1.200.0090.00616.36
7.1.190.0110.00416.25
7.1.180.0050.01116.36
7.1.170.0090.00716.42
7.1.160.0080.00516.26
7.1.150.0060.00716.50
7.1.140.0050.00616.30
7.1.130.0050.00716.46
7.1.120.0090.00516.36
7.1.110.0040.01016.45
7.1.100.0040.01016.33
7.1.90.0050.00916.32
7.1.80.0030.01216.34
7.1.70.0080.00616.46
7.1.60.0190.00925.38
7.1.50.0120.01325.50
7.1.40.0150.01025.43
7.1.30.0130.01125.39
7.1.20.0140.00925.22
7.1.10.0060.00916.49
7.1.00.0040.00916.29
7.0.330.0030.00616.92
7.0.320.0000.01017.14
7.0.310.0000.01216.92
7.0.300.0140.00316.99
7.0.290.0060.00916.93
7.0.280.0030.01017.07
7.0.270.0090.00316.82
7.0.260.0070.00716.91
7.0.250.0110.00716.82
7.0.240.0060.00616.92
7.0.230.0060.00916.74
7.0.220.0030.01216.90
7.0.210.0070.00717.00
7.0.200.0030.00616.99
7.0.190.0080.00816.71
7.0.180.0000.01616.73
7.0.170.0100.00717.06
7.0.160.0030.00917.01
7.0.150.0030.00917.19
7.0.140.0070.01016.85
7.0.130.0070.01016.80
7.0.120.0070.00716.86
7.0.110.0100.00316.78
7.0.100.0060.00916.73
7.0.90.0030.01217.00
7.0.80.0030.00816.86
7.0.70.0000.01216.81
7.0.60.0090.00017.17
7.0.50.0030.00917.03
7.0.40.0060.00314.85
7.0.30.0060.00614.89
7.0.20.0030.00715.01
7.0.10.0080.00414.96
7.0.00.0050.00514.85
5.6.400.0030.01315.79
5.6.390.0130.00015.68
5.6.380.0050.00714.88
5.6.370.0030.01015.63
5.6.360.0030.01415.63
5.6.350.0100.00315.78
5.6.340.0070.00715.65
5.6.330.0100.00315.82
5.6.320.0030.01615.77
5.6.310.0070.01015.83
5.6.300.0040.01115.79
5.6.290.0060.00615.75
5.6.280.0040.01115.86
5.6.270.0070.00715.70
5.6.260.0070.01015.93
5.6.250.0000.01515.81
5.6.240.0090.00615.74
5.6.230.0000.01315.71
5.6.220.0000.00916.04
5.6.210.0070.00715.49
5.6.200.0000.01515.69
5.6.190.0030.00615.88
5.6.180.0070.00315.87
5.6.170.0050.00515.91
5.6.160.0040.00815.67
5.6.150.0040.01115.89
5.6.140.0070.00715.57
5.6.130.0070.00315.59
5.6.120.0120.00615.53
5.6.110.0090.00015.75
5.6.100.0030.00715.69
5.6.90.0030.00615.55
5.6.80.0040.00715.48
5.6.70.0000.01215.75
5.6.60.0030.01015.85
5.6.50.0070.00715.76
5.6.40.0060.00615.82
5.6.30.0070.00415.87
5.6.20.0000.00915.64
5.6.10.0060.00915.60
5.6.00.0120.00315.95

preferences:
70.09 ms | 403 KiB | 5 Q