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->getName();

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.0060.01218.55
8.3.50.0150.00322.83
8.3.40.0160.00318.83
8.3.30.0070.00718.84
8.3.20.0050.00321.75
8.3.10.0080.00023.71
8.3.00.0050.00319.79
8.2.180.0130.01018.54
8.2.170.0090.00622.96
8.2.160.0070.00719.16
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0030.00622.31
8.2.120.0040.00426.35
8.2.110.0030.00620.70
8.2.100.0090.00317.91
8.2.90.0080.00017.91
8.2.80.0080.00019.46
8.2.70.0000.00817.63
8.2.60.0040.00417.75
8.2.50.0040.00418.10
8.2.40.0050.00322.33
8.2.30.0070.00319.07
8.2.20.0040.00417.80
8.2.10.0040.00417.93
8.2.00.0000.00718.11
8.1.280.0100.01025.92
8.1.270.0000.00823.83
8.1.260.0000.00828.09
8.1.250.0050.00228.09
8.1.240.0030.00622.55
8.1.230.0000.01220.97
8.1.220.0050.00317.74
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0000.00918.59
8.1.160.0030.00322.15
8.1.150.0040.00418.88
8.1.140.0000.00719.65
8.1.130.0070.00017.72
8.1.120.0000.00817.52
8.1.110.0060.00317.43
8.1.100.0030.00717.52
8.1.90.0040.00417.46
8.1.80.0000.00817.50
8.1.70.0000.00717.42
8.1.60.0060.00317.45
8.1.50.0030.00517.58
8.1.40.0080.00017.49
8.1.30.0060.00317.59
8.1.20.0060.00317.56
8.1.10.0040.00417.44
8.1.00.0000.00717.51
8.0.300.0040.00420.07
8.0.290.0050.00316.88
8.0.280.0000.00718.45
8.0.270.0030.00517.13
8.0.260.0060.00017.20
8.0.250.0030.00316.93
8.0.240.0030.00316.99
8.0.230.0070.00017.01
8.0.220.0000.00716.96
8.0.210.0000.00717.00
8.0.200.0080.00016.91
8.0.190.0040.00416.92
8.0.180.0000.00716.91
8.0.170.0040.00416.83
8.0.160.0050.00316.94
8.0.150.0040.00416.88
8.0.140.0080.00016.82
8.0.130.0030.00313.41
8.0.120.0000.00716.88
8.0.110.0000.00716.99
8.0.100.0050.00217.02
8.0.90.0000.00716.91
8.0.80.0110.00716.95
8.0.70.0000.00716.99
8.0.60.0050.00316.89
8.0.50.0030.00516.93
8.0.30.0080.01017.22
8.0.20.0090.01117.40
8.0.10.0020.00517.08
8.0.00.0000.01616.81
7.4.330.0000.00515.08
7.4.320.0030.00316.30
7.4.300.0070.00016.56
7.4.290.0030.00316.63
7.4.280.0030.00616.60
7.4.270.0000.00716.59
7.4.260.0000.00716.57
7.4.250.0000.00716.45
7.4.240.0030.00316.55
7.4.230.0070.00016.49
7.4.220.0150.01016.56
7.4.210.0100.00716.54
7.4.200.0070.00016.68
7.4.160.0080.00816.61
7.4.150.0090.00917.40
7.4.140.0130.00717.86
7.4.130.0130.00516.59
7.4.120.0120.00516.60
7.4.110.0030.01416.34
7.4.100.0130.01016.50
7.4.90.0060.01216.68
7.4.80.0080.00819.39
7.4.70.0120.00916.59
7.4.60.0100.00616.51
7.4.50.0100.00316.67
7.4.40.0080.00816.63
7.4.30.0120.00316.25
7.4.00.0050.01014.97
7.3.330.0000.00513.23
7.3.320.0000.00513.39
7.3.310.0000.00816.36
7.3.300.0030.00316.18
7.3.290.0090.00716.35
7.3.280.0080.00916.36
7.3.270.0030.01317.40
7.3.260.0120.01016.63
7.3.250.0100.00916.33
7.3.240.0060.01316.46
7.3.230.0200.00316.39
7.3.210.0130.00316.36
7.3.200.0100.01016.50
7.3.190.0070.01016.52
7.3.180.0120.00616.50
7.3.170.0150.00416.27
7.3.160.0140.00316.58
7.3.120.0030.01614.80
7.3.110.0000.01514.71
7.3.100.0060.00614.84
7.3.90.0060.00914.74
7.3.80.0090.00614.93
7.3.70.0110.00314.66
7.3.60.0030.01014.83
7.3.50.0110.00414.86
7.3.40.0140.00414.84
7.3.30.0040.00714.84
7.3.20.0070.00716.46
7.3.10.0000.01116.66
7.3.00.0020.01116.49
7.2.330.0070.01016.50
7.2.320.0130.00616.82
7.2.310.0100.00716.42
7.2.300.0080.01116.70
7.2.290.0120.00616.69
7.2.250.0070.01015.36
7.2.240.0080.00815.32
7.2.230.0070.01014.98
7.2.220.0000.01215.03
7.2.210.0100.00715.08
7.2.200.0060.00915.04
7.2.190.0060.00315.18
7.2.180.0060.00915.18
7.2.170.0060.00615.17
7.2.130.0060.00316.57
7.2.120.0120.00016.59
7.2.110.0060.00316.68
7.2.100.0150.00316.76
7.2.90.0080.00616.73
7.2.80.0090.00316.46
7.2.70.0070.00716.86
7.2.60.0030.00916.73
7.2.50.0040.01416.92
7.2.40.0110.00416.71
7.2.30.0030.00916.91
7.2.20.0050.00516.69
7.2.10.0080.00416.86
7.2.00.0040.01116.54
7.1.330.0120.00315.76
7.1.320.0030.00615.77
7.1.310.0070.00415.93
7.1.300.0040.00415.74
7.1.290.0070.00415.58
7.1.280.0080.00415.63
7.1.270.0070.00415.69
7.1.260.0000.01415.63
7.1.250.0030.00715.28
7.1.240.0070.00715.23
7.1.230.0030.00915.27
7.1.220.0070.00315.82
7.1.210.0060.00915.43
7.1.200.0060.00615.68
7.1.190.0060.00315.55
7.1.180.0040.01115.66
7.1.170.0090.00615.34
7.1.160.0090.00615.47
7.1.150.0080.00015.56
7.1.140.0060.00315.63
7.1.130.0030.00915.58
7.1.120.0110.00015.60
7.1.110.0030.01315.60
7.1.100.0110.00415.86
7.1.90.0130.00315.45
7.1.80.0070.00715.65
7.1.70.0020.01016.28
7.1.60.0050.00817.66
7.1.50.0100.00716.20
7.1.40.0000.01615.66
7.1.30.0070.00315.72
7.1.20.0100.01015.46
7.1.10.0130.00315.57
7.1.00.0070.04219.00
7.0.330.0030.00714.79
7.0.320.0090.00315.02
7.0.310.0090.00614.84
7.0.300.0070.00715.09
7.0.290.0060.00615.13
7.0.280.0070.00715.10
7.0.270.0160.00315.14
7.0.260.0000.01114.98
7.0.250.0100.00615.07
7.0.240.0100.00615.15
7.0.230.0070.00715.28
7.0.220.0040.00715.23
7.0.210.0130.00015.22
7.0.200.0230.00615.14
7.0.190.0130.00015.11
7.0.180.0100.00714.88
7.0.170.0110.00715.28
7.0.160.0100.00715.34
7.0.150.0110.00715.32
7.0.140.0110.00015.28
7.0.130.0130.00315.32
7.0.120.0100.00614.92
7.0.110.0050.00415.20
7.0.100.0140.02617.59
7.0.90.0170.02517.42
7.0.80.0190.03617.62
7.0.70.0050.02617.51
7.0.60.0130.03817.57
7.0.50.0030.04717.63
7.0.40.0060.02816.69
7.0.30.0050.04416.69
7.0.20.0050.02516.71
7.0.10.0070.03316.62
7.0.00.0030.03816.74
5.6.380.0060.00614.06
5.6.370.0040.00814.06
5.6.360.0070.00714.21
5.6.350.0060.00314.19
5.6.340.0100.00313.98
5.6.330.0040.01114.38
5.6.320.0030.00914.25
5.6.310.0090.00614.14
5.6.300.0100.00313.99
5.6.290.0100.00014.23
5.6.280.0120.00314.53
5.6.270.0000.00814.54
5.6.260.0100.00313.98
5.6.250.0120.02517.53
5.6.240.0060.03117.27
5.6.230.0070.04717.48
5.6.220.0000.04317.49
5.6.210.0080.02517.34
5.6.200.0090.03517.45
5.6.190.0030.04117.63
5.6.180.0100.01817.75
5.6.170.0050.02717.62
5.6.160.0100.02817.49
5.6.150.0050.02517.65
5.6.140.0070.04217.65
5.6.130.0050.03117.67
5.6.120.0080.04017.62
5.6.110.0120.04017.66
5.6.100.0040.02217.52
5.6.90.0090.04517.45
5.6.80.0080.02717.06
5.6.70.0060.03017.23
5.6.60.0030.04317.15
5.6.50.0070.04717.08
5.6.40.0100.03617.22
5.6.30.0080.03717.11
5.6.20.0090.02417.31
5.6.10.0120.03017.34
5.6.00.0080.02217.09

preferences:
57 ms | 401 KiB | 5 Q