3v4l.org

run code in 300+ PHP versions simultaneously
<?php class RootClass { public static function getStaticName() { echo 'get_called_class(): ' . get_called_class(). "\n"; echo 'static::$class: ' . static::$class . "\n"; } public function getName() { static::getStaticName(); } } class SubClass extends RootClass {} $instance = new SubClass(); $instance::getStaticName();

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.0090.00918.50
8.3.50.0140.00019.71
8.3.40.0070.01018.67
8.3.30.0000.01418.90
8.3.20.0040.00421.77
8.3.10.0040.00423.61
8.3.00.0030.00619.85
8.2.180.0120.00618.29
8.2.170.0140.00022.96
8.2.160.0070.00719.33
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.01320.75
8.2.110.0030.00621.18
8.2.100.0070.00417.84
8.2.90.0080.00017.75
8.2.80.0050.00318.91
8.2.70.0030.00517.63
8.2.60.0080.00017.75
8.2.50.0080.00018.10
8.2.40.0080.00022.15
8.2.30.0080.00019.15
8.2.20.0080.00017.68
8.2.10.0000.00718.06
8.2.00.0040.00418.11
8.1.280.0120.00925.92
8.1.270.0050.00323.82
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0070.00322.14
8.1.230.0040.00720.94
8.1.220.0040.00418.59
8.1.210.0030.00618.77
8.1.200.0070.00317.13
8.1.190.0030.00517.51
8.1.180.0040.00418.10
8.1.170.0000.00818.71
8.1.160.0000.00822.09
8.1.150.0000.00718.89
8.1.140.0040.00419.59
8.1.130.0000.00717.77
8.1.120.0030.00317.50
8.1.110.0040.00417.48
8.1.100.0070.00317.35
8.1.90.0070.00017.36
8.1.80.0040.00417.36
8.1.70.0070.00017.40
8.1.60.0090.00017.52
8.1.50.0000.00817.41
8.1.40.0030.00517.58
8.1.30.0000.00817.53
8.1.20.0000.00817.54
8.1.10.0000.00917.48
8.1.00.0000.00717.49
8.0.300.0000.00719.84
8.0.290.0000.00916.75
8.0.280.0070.00018.46
8.0.270.0040.00417.25
8.0.260.0030.00317.35
8.0.250.0030.00316.89
8.0.240.0040.00416.88
8.0.230.0000.00717.00
8.0.220.0000.00616.83
8.0.210.0070.00017.00
8.0.200.0030.00316.95
8.0.190.0050.00316.93
8.0.180.0040.00416.87
8.0.170.0040.00416.93
8.0.160.0000.00716.98
8.0.150.0040.00416.89
8.0.140.0000.00816.90
8.0.130.0060.00013.41
8.0.120.0040.00416.95
8.0.110.0040.00416.98
8.0.100.0000.00716.82
8.0.90.0030.00516.95
8.0.80.0080.00816.99
8.0.70.0000.00717.00
8.0.60.0040.00416.84
8.0.50.0050.00216.72
8.0.30.0070.00717.07
8.0.20.0110.00717.40
8.0.10.0070.00017.08
8.0.00.0070.01016.81
7.4.330.0000.00415.08
7.4.320.0000.00616.45
7.4.300.0030.00316.49
7.4.290.0030.00316.36
7.4.280.0000.00916.60
7.4.270.0040.00416.59
7.4.260.0030.00316.60
7.4.250.0040.00416.57
7.4.240.0030.00316.52
7.4.230.0090.00016.63
7.4.220.0080.01116.40
7.4.210.0110.00416.57
7.4.200.0030.00316.39
7.4.160.0150.01516.44
7.4.150.0120.00417.40
7.4.140.0100.00717.86
7.4.130.0060.01116.49
7.4.120.0050.01216.58
7.4.110.0150.00416.43
7.4.100.0140.00316.57
7.4.90.0090.00916.59
7.4.80.0060.01019.39
7.4.70.0100.00716.43
7.4.60.0070.01016.50
7.4.50.0140.00016.47
7.4.40.0160.00016.59
7.4.30.0110.00716.41
7.4.10.0110.00714.67
7.4.00.0070.00914.95
7.3.330.0060.00013.21
7.3.320.0060.00013.21
7.3.310.0070.00016.38
7.3.300.0000.00716.48
7.3.290.0070.00716.42
7.3.280.0080.00916.43
7.3.270.0110.00617.40
7.3.260.0160.00616.50
7.3.250.0100.00616.40
7.3.240.0100.01116.46
7.3.230.0090.00916.43
7.3.210.0060.01516.41
7.3.200.0070.01016.59
7.3.190.0130.00316.45
7.3.180.0100.00716.66
7.3.170.0120.00616.53
7.3.160.0090.00916.56
7.3.130.0070.01014.78
7.3.120.0130.00614.97
7.3.110.0090.00614.89
7.3.100.0080.00815.13
7.3.90.0070.01014.88
7.3.80.0030.01214.80
7.3.70.0040.01114.67
7.3.60.0030.01015.03
7.3.50.0040.00814.87
7.3.40.0030.00914.98
7.3.30.0070.00714.47
7.3.20.0110.00416.54
7.3.10.0060.00816.46
7.3.00.0100.00616.73
7.2.330.0100.00716.36
7.2.320.0160.00616.80
7.2.310.0130.00316.75
7.2.300.0120.00916.36
7.2.290.0060.01016.70
7.2.260.0060.01315.29
7.2.250.0040.01215.27
7.2.240.0030.01015.04
7.2.230.0080.00815.08
7.2.220.0040.00715.07
7.2.210.0030.01214.97
7.2.200.0060.00315.11
7.2.190.0080.00815.02
7.2.180.0060.00815.15
7.2.170.0000.01415.13
7.2.160.0040.00814.85
7.2.150.0130.00016.86
7.2.140.0070.00717.07
7.2.130.0120.00716.94
7.2.120.0090.00516.61
7.2.110.0050.01016.86
7.2.100.0090.00616.80
7.2.90.0090.00916.87
7.2.80.0120.00716.67
7.2.70.0080.01016.89
7.2.60.0090.00516.91
7.2.50.0100.00616.72
7.2.40.0030.00916.88
7.2.30.0100.00416.65
7.2.20.0030.01116.94
7.2.10.0010.01316.92
7.2.00.0080.00617.69
7.1.330.0060.00815.90
7.1.320.0150.00015.77
7.1.310.0060.00915.65
7.1.300.0030.00915.66
7.1.290.0040.00415.77
7.1.280.0040.00415.70
7.1.270.0060.00615.79
7.1.260.0070.00315.70
7.1.250.0090.00815.69
7.1.240.0030.00615.78
7.1.230.0060.00315.61
7.1.220.0090.00615.61
7.1.210.0000.01215.64
7.1.200.0040.00715.65
7.1.190.0030.01015.63
7.1.180.0040.00415.93
7.1.170.0060.00915.88
7.1.160.0070.00715.92
7.1.150.0130.00015.79
7.1.140.0080.00415.69
7.1.130.0050.00515.77
7.1.120.0080.00415.88
7.1.110.0000.01215.75
7.1.100.0040.00416.87
7.1.90.0040.00415.75
7.1.80.0040.00815.64
7.1.70.0050.00716.38
7.1.60.0060.00817.85
7.1.50.0050.01016.36
7.1.40.0070.00315.87
7.1.30.0000.01115.56
7.1.20.0090.00615.47
7.1.10.0090.00615.84
7.1.00.0120.03818.99
7.0.330.0080.00415.40
7.0.320.0080.00315.30
7.0.310.0070.00315.06
7.0.300.0040.00415.14
7.0.290.0070.00715.25
7.0.280.0070.00315.29
7.0.270.0040.00815.28
7.0.260.0000.01215.11
7.0.250.0030.00515.43
7.0.240.0080.00415.45
7.0.230.0030.00615.34
7.0.220.0000.00915.20
7.0.210.0000.01415.22
7.0.200.0070.00915.03
7.0.190.0000.00815.42
7.0.180.0070.00315.55
7.0.170.0000.01115.38
7.0.160.0090.00615.43
7.0.150.0090.00315.10
7.0.140.0060.01015.13
7.0.130.0030.01215.32
7.0.120.0040.00415.34
7.0.110.0070.00715.22
7.0.100.0000.01415.39
7.0.90.0110.03617.53
7.0.80.0100.04317.72
7.0.70.0050.03317.73
7.0.60.0090.03217.68
7.0.50.0150.02617.99
7.0.40.0080.04017.12
7.0.30.0030.03817.12
7.0.20.0030.03817.06
7.0.10.0070.03117.17
7.0.00.0050.04417.10
5.6.400.0000.00814.11
5.6.390.0070.00714.62
5.6.380.0070.00714.18
5.6.370.0060.00914.39
5.6.360.0070.00714.10
5.6.350.0040.00714.11
5.6.340.0130.00314.53
5.6.330.0070.00714.34
5.6.320.0080.00414.50
5.6.310.0030.00914.55
5.6.300.0040.01114.15
5.6.290.0030.00614.17
5.6.280.0060.00814.31
5.6.270.0070.01014.30
5.6.260.0040.00714.15
5.6.250.0000.01114.43
5.6.240.0100.04217.50
5.6.230.0120.03017.45
5.6.220.0070.04717.44
5.6.210.0080.03517.41
5.6.200.0150.03717.71
5.6.190.0060.03417.72
5.6.180.0110.02817.65
5.6.170.0070.03217.71
5.6.160.0070.04417.78
5.6.150.0080.03217.56
5.6.140.0070.03717.65
5.6.130.0060.03617.68
5.6.120.0100.03317.59
5.6.110.0100.03117.58
5.6.100.0090.03017.70
5.6.90.0120.03517.72
5.6.80.0110.03417.40
5.6.70.0100.03017.24
5.6.60.0120.02717.33
5.6.50.0080.03317.22
5.6.40.0130.03317.17
5.6.30.0080.03217.32
5.6.20.0120.03017.30
5.6.10.0080.03217.34
5.6.00.0090.03017.32

preferences:
58.74 ms | 400 KiB | 5 Q