3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function getXName() { return x::getClassName(); } function getXStaticName() { return x::getStaticClassName(); } } class b extends a { } class x { public function getClassName() { return get_called_class(); } public static function getStaticClassName() { return get_called_class(); } } $a = new a(); $b = new b(); echo $a->getXName(); // will return "a" echo $b->getXName(); // will return "b" echo $a->getXStaticName(); // will return "x" echo $b->getXStaticName(); // will return "x" ?>

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.40.0140.00018.54
8.3.30.0140.00019.21
8.3.20.0080.00020.14
8.3.10.0080.00023.52
8.3.00.0080.00019.25
8.2.170.0070.00722.96
8.2.160.0050.01020.40
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0000.00720.90
8.2.110.0070.00320.51
8.2.100.0070.00417.78
8.2.90.0050.00319.09
8.2.80.0000.00719.32
8.2.70.0000.00817.63
8.2.60.0090.00017.93
8.2.50.0080.00018.07
8.2.40.0080.00018.22
8.2.30.0070.00021.18
8.2.20.0040.00417.56
8.2.10.0040.00417.88
8.2.00.0050.00217.73
8.1.270.0000.00820.83
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0000.01122.08
8.1.230.0090.00322.73
8.1.220.0030.00518.77
8.1.210.0040.00418.91
8.1.200.0040.00417.35
8.1.190.0000.00717.53
8.1.180.0000.00718.10
8.1.170.0040.00418.41
8.1.160.0030.00618.81
8.1.150.0040.00418.52
8.1.140.0050.00317.29
8.1.130.0080.00017.77
8.1.120.0040.00417.45
8.1.110.0000.00717.28
8.1.100.0000.00917.38
8.1.90.0070.00017.30
8.1.80.0090.00017.32
8.1.70.0070.00017.30
8.1.60.0000.00817.57
8.1.50.0000.00817.48
8.1.40.0070.00317.50
8.1.30.0080.00017.58
8.1.20.0000.00817.59
8.1.10.0030.00617.54
8.1.00.0000.00817.46
8.0.300.0080.00019.85
8.0.290.0040.00417.05
8.0.280.0000.00718.30
8.0.270.0000.00717.06
8.0.260.0000.00717.06
8.0.250.0030.00316.95
8.0.240.0000.00616.88
8.0.230.0000.00816.97
8.0.220.0030.00316.88
8.0.210.0050.00216.86
8.0.200.0040.00416.88
8.0.190.0080.00016.95
8.0.180.0040.00416.83
8.0.170.0050.00516.92
8.0.160.0000.00716.76
8.0.150.0040.00416.78
8.0.140.0040.00416.82
8.0.130.0050.00013.33
8.0.120.0000.00816.75
8.0.110.0040.00416.76
8.0.100.0050.00216.73
8.0.90.0040.00416.91
8.0.80.0090.00616.95
8.0.70.0040.00416.67
8.0.60.0040.00416.97
8.0.50.0050.00216.93
8.0.30.0110.01217.18
8.0.20.0080.01117.40
8.0.10.0040.00416.87
8.0.00.0070.01216.69
7.4.330.0050.00015.03
7.4.320.0030.00316.54
7.4.300.0000.00616.57
7.4.290.0030.00316.51
7.4.280.0030.00516.54
7.4.270.0070.00016.43
7.4.260.0030.00316.55
7.4.250.0050.00316.56
7.4.240.0020.00516.49
7.4.230.0020.00516.49
7.4.220.0030.01516.46
7.4.210.0060.00916.46
7.4.200.0080.00016.66
7.4.160.0100.00616.56
7.4.150.0140.00417.40
7.4.140.0110.00617.86
7.4.130.0090.00816.44
7.4.120.0110.00616.68
7.4.110.0310.02316.52
7.4.100.0060.01516.28
7.4.90.0070.01116.64
7.4.80.0090.01619.39
7.4.70.0060.01016.61
7.4.60.0000.01516.59
7.4.50.0030.00316.36
7.4.40.0100.00616.36
7.4.30.0140.01016.44
7.4.10.0090.00314.77
7.4.00.0060.01214.86
7.3.330.0060.00013.38
7.3.320.0050.00013.06
7.3.310.0040.00416.15
7.3.300.0080.00016.29
7.3.290.0070.00716.32
7.3.280.0120.00316.31
7.3.270.0090.00617.40
7.3.260.0110.01116.31
7.3.250.0130.00516.29
7.3.240.0090.00916.49
7.3.230.0040.01316.39
7.3.210.0060.01216.46
7.3.200.0050.01116.35
7.3.190.0030.01916.24
7.3.180.0060.01216.33
7.3.170.0060.00916.49
7.3.160.0030.01216.32
7.3.130.0090.00914.91
7.3.120.0070.01014.75
7.3.110.0070.01014.82
7.3.100.0000.01514.68
7.3.90.0090.00914.82
7.3.80.0070.01014.73
7.3.70.0040.01014.75
7.3.60.0100.00614.65
7.3.50.0080.00814.55
7.3.40.0070.00714.63
7.3.30.0100.00714.70
7.3.20.0040.01116.37
7.3.10.0030.01016.54
7.3.00.0040.01116.64
7.2.330.0100.00716.57
7.2.320.0030.01616.46
7.2.310.0100.00716.72
7.2.300.0150.00616.43
7.2.290.0120.01516.54
7.2.260.0030.01315.09
7.2.250.0070.01114.98
7.2.240.0070.00714.84
7.2.230.0030.01315.14
7.2.220.0160.00315.23
7.2.210.0070.01114.83
7.2.200.0120.00314.83
7.2.190.0030.00615.09
7.2.180.0080.00415.02
7.2.170.0060.00615.02
7.2.160.0140.00314.98
7.2.150.0090.00616.98
7.2.140.0050.00517.01
7.2.130.0070.00716.92
7.2.120.0000.01316.88
7.2.110.0000.01316.71
7.2.100.0030.01316.73
7.2.90.0070.00716.55
7.2.80.0060.00916.83
7.2.70.0040.00916.76
7.2.60.0100.00416.53
7.2.50.0040.01117.00
7.2.40.0060.00916.98
7.2.30.0050.00516.99
7.2.20.0040.01216.94
7.2.10.0000.01316.84
7.2.00.0020.01318.14
7.1.330.0070.01015.69
7.1.320.0070.00715.63
7.1.310.0100.00315.47
7.1.300.0040.00715.69
7.1.290.0050.00515.55
7.1.280.0070.00715.71
7.1.270.0080.00415.61
7.1.260.0070.00715.75
7.1.250.0040.01215.66
7.1.240.0000.01315.70
7.1.230.0060.00615.52
7.1.220.0030.01415.42
7.1.210.0090.00315.61
7.1.200.0070.00615.77
7.1.190.0060.00615.67
7.1.180.0030.01015.77
7.1.170.0070.00715.67
7.1.160.0070.00715.60
7.1.150.0090.00615.50
7.1.140.0040.00415.74
7.1.130.0090.00615.57
7.1.120.0000.01115.77
7.1.110.0030.01015.73
7.1.100.0040.00916.76
7.1.90.0040.00715.68
7.1.80.0060.00615.45
7.1.70.0040.00716.35
7.1.60.0070.01317.54
7.1.50.0080.00716.15
7.1.40.0030.01015.38
7.1.30.0000.01415.72
7.1.20.0000.01115.72
7.1.10.0120.00315.69
7.1.00.0030.04119.03
7.0.330.0110.00315.29
7.0.320.0070.01015.04
7.0.310.0030.01315.18
7.0.300.0000.01315.38
7.0.290.0030.01415.23
7.0.280.0060.00315.22
7.0.270.0070.00315.49
7.0.260.0000.01215.35
7.0.250.0030.00915.50
7.0.240.0030.00715.51
7.0.230.0110.00015.34
7.0.220.0030.01015.56
7.0.210.0030.00615.09
7.0.200.0040.00415.94
7.0.190.0070.00315.06
7.0.180.0070.00715.34
7.0.170.0040.00415.48
7.0.160.0060.00615.11
7.0.150.0000.01215.18
7.0.140.0060.03718.70
7.0.130.0030.00915.08
7.0.120.0080.00815.41
7.0.110.0030.01215.46
7.0.100.0060.00815.43
7.0.90.0030.01015.41
7.0.80.0060.00615.41
7.0.70.0030.01015.45
7.0.60.0000.02617.70
7.0.50.0060.03616.71
7.0.40.0070.03016.75
7.0.30.0190.02916.77
7.0.20.0210.04116.75
7.0.10.0050.02516.85
7.0.00.0070.04516.69
5.6.400.0040.00714.24
5.6.390.0040.00714.56
5.6.380.0040.00814.47
5.6.370.0070.01013.71
5.6.360.0070.01014.43
5.6.350.0150.00014.20
5.6.340.0040.00814.39
5.6.330.0000.01114.40
5.6.320.0000.00914.62
5.6.310.0090.00614.32
5.6.300.0040.00813.93
5.6.290.0030.01014.68
5.6.280.0030.04217.64
5.6.270.0070.00414.45
5.6.260.0090.00814.25
5.6.250.0120.00314.41
5.6.240.0040.01114.27
5.6.230.0000.01414.59
5.6.220.0090.00614.17
5.6.210.0130.04017.31
5.6.200.0110.04016.25
5.6.190.0050.02517.46
5.6.180.0150.03317.41
5.6.170.0130.03017.48
5.6.160.0050.04717.28
5.6.150.0050.04016.17
5.6.140.0050.02416.26
5.6.130.0090.03816.18
5.6.120.0100.03317.60
5.6.110.0080.04017.59
5.6.100.0060.03517.52
5.6.90.0040.05117.72
5.6.80.0040.04817.34
5.6.70.0120.00614.26
5.6.60.0030.01014.30
5.6.50.0030.00714.34
5.6.40.0040.00714.35
5.6.30.0090.00614.13
5.6.20.0030.01014.02
5.6.10.0030.01014.21
5.6.00.0000.00814.11
5.5.380.0040.00714.21
5.5.370.0070.00714.40
5.5.360.0030.00614.14
5.5.350.0080.04317.52
5.5.340.0070.04216.14
5.5.330.0050.02717.38
5.5.320.0170.02417.26
5.5.310.0180.04317.47
5.5.300.0030.02816.28
5.5.290.0080.02016.08
5.5.280.0050.04817.31
5.5.270.0030.04717.52
5.5.260.0100.05017.50
5.5.250.0030.03817.44
5.5.240.2060.02117.19
5.5.230.0030.00614.38
5.5.220.0030.00614.34
5.5.210.0030.01014.06
5.5.200.0000.00814.03
5.5.190.0100.00314.04
5.5.180.0060.00613.91
5.5.170.0100.00714.03
5.5.160.0030.00514.33
5.5.150.0050.00514.06
5.5.140.0040.00714.07
5.5.130.0080.00314.46
5.5.120.0000.01414.16
5.5.110.0030.01014.27
5.5.100.0030.01013.97
5.5.90.0060.00914.31
5.5.80.0100.00614.28
5.5.70.0040.01114.15
5.5.60.0040.01114.31
5.5.50.0100.00614.19
5.5.40.0040.00814.38
5.5.30.0060.01314.34
5.5.20.0090.00614.32
5.5.10.0060.00914.26
5.5.00.0000.01314.07
5.4.450.0240.02915.62
5.4.440.0380.02615.72
5.4.430.0320.02215.76
5.4.420.0770.02215.84
5.4.410.0580.02415.75
5.4.400.0550.02215.57
5.4.390.0250.02115.63
5.4.380.0110.04015.26
5.4.370.0120.02615.36
5.4.360.0080.03215.30
5.4.350.0030.03515.36
5.4.340.0100.02915.28
5.4.330.0040.00812.04
5.4.320.0070.02012.28
5.4.310.0050.02012.27
5.4.300.0060.01912.28
5.4.290.0040.02112.27
5.4.280.0050.01912.22
5.4.270.0090.01812.22
5.4.260.0060.02212.22
5.4.250.0070.02012.22
5.4.240.0060.02012.22
5.4.230.0050.02112.22
5.4.220.0050.02112.22
5.4.210.0060.02212.22
5.4.200.0050.02412.22
5.4.190.0070.02012.22
5.4.180.0050.02212.21
5.4.170.0090.02012.22
5.4.160.0070.01812.22
5.4.150.0050.02212.21
5.4.140.0030.02612.06
5.4.130.0060.02012.05
5.4.120.0040.02412.03
5.4.110.0070.01912.03
5.4.100.0080.01912.03
5.4.90.0050.02212.03
5.4.80.0060.02012.03
5.4.70.0060.01912.03
5.4.60.0070.02012.03
5.4.50.0050.02412.03
5.4.40.0040.02112.02
5.4.30.0090.02112.02
5.4.20.0050.02612.02
5.4.10.0060.02512.02
5.4.00.0030.02311.77
5.3.290.0050.04412.80
5.3.280.0040.03912.71
5.3.270.0100.04112.72
5.3.260.0090.04412.72
5.3.250.0060.04112.72
5.3.240.0080.04412.71
5.3.230.0070.04112.70
5.3.220.0030.04712.68
5.3.210.0110.03612.68
5.3.200.0070.03712.68
5.3.190.0070.03712.68
5.3.180.0050.04112.68
5.3.170.0060.04612.67
5.3.160.0070.04012.67
5.3.150.0090.04512.68
5.3.140.0100.03712.66
5.3.130.0070.03812.66
5.3.120.0030.04412.66
5.3.110.0110.04212.65
5.3.100.0060.04012.12
5.3.90.0070.04412.11
5.3.80.0050.04112.10
5.3.70.0040.04312.10
5.3.60.0070.04012.08
5.3.50.0050.03712.03
5.3.40.0080.03912.03
5.3.30.0100.04011.98
5.3.20.0070.04711.77
5.3.10.0080.03911.73
5.3.00.0090.03211.72
5.2.170.0090.0349.23
5.2.160.0080.0349.23
5.2.150.0020.0399.23
5.2.140.0080.0359.23
5.2.130.0080.0299.19
5.2.120.0050.0349.19
5.2.110.0080.0279.20
5.2.100.0090.0329.19
5.2.90.0100.0339.19
5.2.80.0070.0319.19
5.2.70.0050.0309.18
5.2.60.0050.0309.14
5.2.50.0050.0309.10
5.2.40.0030.0319.07
5.2.30.0070.0319.06
5.2.20.0090.0269.04
5.2.10.0030.0328.95
5.2.00.0080.0298.82
5.1.60.0070.0238.10
5.1.50.0050.0278.09
5.1.40.0080.0308.08
5.1.30.0080.0288.43
5.1.20.0060.0288.45
5.1.10.0040.0328.17
5.1.00.0110.0278.17
5.0.50.0020.0256.66
5.0.40.0060.0236.50
5.0.30.0050.0306.33
5.0.20.0050.0226.29
5.0.10.0030.0276.27
5.0.00.0050.0386.26
4.4.90.0020.0204.78
4.4.80.0040.0214.75
4.4.70.0040.0164.75
4.4.60.0040.0224.75
4.4.50.0030.0164.77
4.4.40.0030.0304.71
4.4.30.0030.0174.76
4.4.20.0030.0204.84
4.4.10.0050.0174.85
4.4.00.0040.0244.76
4.3.110.0040.0154.67
4.3.100.0020.0154.66
4.3.90.0040.0224.63
4.3.80.0030.0284.58
4.3.70.0050.0204.63
4.3.60.0030.0184.63
4.3.50.0040.0164.63
4.3.40.0030.0284.54
4.3.30.0030.0203.31
4.3.20.0020.0163.29
4.3.10.0030.0193.24
4.3.00.0200.02015.63

preferences:
41.76 ms | 400 KiB | 5 Q