3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { static public function hi() { echo "Hi i'm a"; } } class b { public function callstaticmethiod() { $class = get_called_class(); $class::hi(); } static public function hi() { echo "Hi i'm b"; } } $b = new b(); $b->callstaticmethiod();

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.0120.00618.30
8.3.50.0110.00722.00
8.3.40.0110.00418.67
8.3.30.0000.01518.92
8.3.20.0040.00420.18
8.3.10.0080.00022.00
8.3.00.0070.00022.52
8.2.180.0140.00718.41
8.2.170.0150.00622.96
8.2.160.0070.00720.95
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00017.63
8.2.110.0080.00021.98
8.2.100.0120.00019.66
8.2.90.0000.00819.27
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0050.00317.77
8.2.50.0030.00618.07
8.2.40.0090.00318.09
8.2.30.0000.01017.88
8.2.20.0070.00017.62
8.2.10.0070.00017.56
8.2.00.0000.00817.55
8.1.280.0100.00725.92
8.1.270.0040.00422.09
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.61
8.1.230.0080.00319.12
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.00
8.1.190.0040.00417.39
8.1.180.0000.00818.66
8.1.170.0000.00918.58
8.1.160.0050.00221.90
8.1.150.0040.00418.62
8.1.140.0070.00017.49
8.1.130.0070.00017.83
8.1.120.0070.00017.42
8.1.110.0050.00317.31
8.1.100.0030.00317.38
8.1.90.0040.00417.39
8.1.80.0030.00517.28
8.1.70.0040.00417.41
8.1.60.0060.00317.45
8.1.50.0040.00417.56
8.1.40.0000.00717.54
8.1.30.0000.00817.62
8.1.20.0030.00517.71
8.1.10.0050.00217.52
8.1.00.0040.00417.55
8.0.300.0070.00018.77
8.0.290.0040.00417.15
8.0.280.0030.00318.44
8.0.270.0030.00617.13
8.0.260.0000.00816.74
8.0.250.0030.00316.77
8.0.240.0070.00416.93
8.0.230.0000.00716.86
8.0.220.0050.00216.78
8.0.210.0030.00316.81
8.0.200.0070.00016.77
8.0.190.0040.00616.91
8.0.180.0060.00316.78
8.0.170.0000.00716.76
8.0.160.0080.00016.77
8.0.150.0000.00716.77
8.0.140.0000.00816.67
8.0.130.0000.00513.35
8.0.120.0040.00416.71
8.0.110.0030.00516.76
8.0.100.0030.00516.66
8.0.90.0050.00216.89
8.0.80.0110.00416.75
8.0.70.0030.00316.77
8.0.60.0000.00816.72
8.0.50.0030.00516.86
8.0.30.0130.00517.05
8.0.20.0070.01117.40
8.0.10.0000.00816.99
8.0.00.0070.01016.74
7.4.330.0000.00515.09
7.4.320.0040.00416.46
7.4.300.0040.00416.51
7.4.290.0000.00716.50
7.4.280.0070.00016.59
7.4.270.0030.00716.52
7.4.260.0000.00616.56
7.4.250.0040.00416.43
7.4.240.0040.00416.45
7.4.230.0030.00316.70
7.4.220.0000.01816.53
7.4.210.0080.00816.60
7.4.200.0040.00416.55
7.4.190.0040.00416.42
7.4.160.0090.00616.32
7.4.150.0130.01017.40
7.4.140.0110.00617.86
7.4.130.0100.00816.38
7.4.120.0060.01116.45
7.4.110.0100.01016.46
7.4.100.0100.01316.45
7.4.90.0100.00716.41
7.4.80.0110.00719.39
7.4.70.0100.00616.74
7.4.60.0070.01616.69
7.4.50.0060.00316.20
7.4.40.0110.00422.77
7.4.30.0030.01316.47
7.4.00.0030.01314.98
7.3.330.0030.00313.30
7.3.320.0050.00013.16
7.3.310.0030.00316.32
7.3.300.0000.00716.24
7.3.290.0070.00716.31
7.3.280.0120.00716.27
7.3.270.0100.00717.40
7.3.260.0190.00616.59
7.3.250.0140.00416.42
7.3.240.0060.01216.28
7.3.230.0070.01016.39
7.3.210.0170.00816.64
7.3.200.0110.00919.39
7.3.190.0110.00616.66
7.3.180.0060.01016.25
7.3.170.0100.01016.59
7.3.160.0100.00616.32
7.3.120.0030.01014.88
7.2.330.0060.01316.37
7.2.320.0070.01016.60
7.2.310.0060.00916.44
7.2.300.0070.00916.44
7.2.290.0000.01616.58
7.2.60.0000.01516.76
7.2.00.0060.00619.43
7.1.200.0000.01515.64
7.1.100.0150.00817.98
7.1.70.0060.00317.15
7.1.60.0110.01419.82
7.1.50.0090.01316.96
7.1.00.0100.06722.31
7.0.200.0150.00616.79
7.0.140.0100.06722.01
7.0.60.0070.08019.76
7.0.50.0070.08317.88
7.0.40.0070.08020.02
7.0.30.0430.04720.10
7.0.20.0230.05020.20
7.0.10.0100.08320.16
7.0.00.0000.04320.05
5.6.210.0030.05720.71
5.6.200.0000.08718.20
5.6.190.0130.03720.63
5.6.180.0230.05720.52
5.6.170.0530.06320.57
5.6.160.0030.05320.45
5.6.150.0130.04718.22
5.6.140.0100.07318.18
5.6.130.0030.07318.24
5.6.120.0100.08021.00
5.6.110.0070.08720.99
5.6.100.0030.05320.96
5.6.90.0030.07320.98
5.6.80.0130.05320.29
5.6.70.4600.04320.53
5.5.350.0100.08320.37
5.5.340.0030.08317.98
5.5.330.0100.07320.13
5.5.320.0270.07720.36
5.5.310.0200.08320.35
5.5.300.0070.07718.07
5.5.290.0070.08317.95
5.5.280.0070.08720.96
5.5.270.0130.06020.87
5.5.260.0030.04720.88
5.5.250.0000.04720.70
5.5.240.0030.08020.16
5.4.450.0600.06319.59
5.4.440.0530.06019.58
5.4.430.0230.04019.37
5.4.420.0100.05719.51
5.4.410.0170.05019.57
5.4.400.0670.00018.67
5.4.390.1100.00018.50
5.4.380.0270.05718.61
5.4.370.0330.05318.70
5.4.360.0730.04318.61
5.4.350.0130.06018.70
5.4.340.0200.06718.56
5.4.320.0030.03912.50
5.4.310.0040.03912.50
5.4.300.0040.03912.50
5.4.290.0030.04012.50
5.4.280.0050.03712.40
5.4.270.0040.04512.40
5.4.260.0070.05318.99
5.4.250.0170.04719.01
5.4.240.0200.07019.09
5.4.230.0200.04718.93
5.4.220.0070.06018.96
5.4.210.0170.05318.91
5.4.200.0300.04718.94
5.4.190.0030.07319.02
5.4.180.0070.05318.95
5.4.170.0030.06718.98
5.4.160.0000.06318.95
5.4.150.0170.06019.03
5.4.140.0100.04716.32
5.4.130.0100.07016.57
5.4.120.0100.04716.60
5.4.110.0200.04016.57
5.4.100.0070.05316.61
5.4.90.0130.04016.47
5.4.80.0030.05016.38
5.4.70.0070.05016.55
5.4.60.0100.04716.49
5.4.50.0230.05016.48
5.4.40.0030.05316.44
5.4.30.0200.04016.52
5.4.20.0130.04716.58
5.4.10.0130.07016.59
5.4.00.0270.05315.71
5.3.290.0030.04112.80
5.3.280.0130.04714.50
5.3.270.0170.04314.83
5.3.260.0070.05314.74
5.3.250.0070.05314.61
5.3.240.0100.07014.78
5.3.230.0130.04714.68
5.3.220.0070.05014.65
5.3.210.0100.06314.54
5.3.200.0130.07014.66
5.3.190.0100.05014.55
5.3.180.0170.06014.64
5.3.170.0070.04714.53
5.3.160.0030.05314.63
5.3.150.0100.07314.63
5.3.140.0070.05714.56
5.3.130.0100.05314.61
5.3.120.0030.05714.61
5.3.110.0130.05714.52
5.3.100.0070.05314.21
5.3.90.0100.04714.02
5.3.80.0130.05314.11
5.3.70.0130.04314.03
5.3.60.0100.06313.97
5.3.50.0130.05014.04
5.3.40.0070.05714.00
5.3.30.0030.05013.89
5.3.20.0100.04313.92
5.3.10.0070.04713.67
5.3.00.0170.04013.82
5.2.170.0100.05711.05
5.2.160.0070.04011.13
5.2.150.0100.03711.05
5.2.140.0070.05711.13
5.2.130.0030.05011.18
5.2.120.0030.04011.09
5.2.110.0100.03311.19
5.2.100.0070.03711.18
5.2.90.0000.04311.09
5.2.80.0030.04711.09
5.2.70.0000.05311.31
5.2.60.0030.04011.14
5.2.50.0100.03711.10
5.2.40.0100.04011.07
5.2.30.0070.04011.05
5.2.20.0030.05711.14
5.2.10.0130.04710.76
5.2.00.0100.04010.80
5.1.60.0030.04010.20
5.1.50.0070.03310.06
5.1.40.0070.04010.14
5.1.30.0000.04310.50
5.1.20.0100.03710.57
5.1.10.0070.04010.17
5.1.00.0070.0409.99
5.0.50.0070.0408.64
5.0.40.0030.0278.33
5.0.30.0030.0438.06
5.0.20.0000.0308.19
5.0.10.0030.0308.23
5.0.00.0030.0408.13
4.4.90.0000.0237.46
4.4.80.0070.0237.46
4.4.70.0030.0207.46
4.4.60.0000.0277.46
4.4.50.0070.0207.46
4.4.40.0030.0337.46
4.4.30.0030.0237.46
4.4.20.0070.0307.46
4.4.10.0100.0277.46
4.4.00.0130.0277.46
4.3.110.0030.0237.46
4.3.100.0030.0207.46
4.3.90.0100.0207.46
4.3.80.0030.0307.46
4.3.70.0000.0237.46
4.3.60.0000.0307.46
4.3.50.0030.0207.46
4.3.40.0070.0307.46
4.3.30.0030.0207.46
4.3.20.0000.0237.45
4.3.10.0030.0237.45
4.3.00.0100.0207.07

preferences:
45.39 ms | 401 KiB | 5 Q