3v4l.org

run code in 300+ PHP versions simultaneously
<?php class human{ public $x = null; protected static function t(){ echo "sdffffffff"; } //魔术方法__call /* $method 获得方法名 $arg 获得方法的参数集合 */ public static function __callStatic($method,$arg){ echo '你想调用我不存在的方法',$method,'方法<br/>'; echo '还传了一个参数<br/>'; echo print_r($arg),'<br/>'; $reflect = new ReflectionMethod($this, $method); var_dump($reflect->isPublic()); self::$method(); } } human::t(1,2,3); $li=new human(); $li->t(1,2,3);

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.0070.01018.43
8.3.50.0170.00321.21
8.3.40.0140.00718.68
8.3.30.0030.01019.04
8.3.20.0040.00420.34
8.3.10.0030.00523.66
8.3.00.0040.00419.56
8.2.180.0150.00318.54
8.2.170.0110.00719.09
8.2.160.0100.00322.96
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00419.73
8.2.110.0060.00322.19
8.2.100.0040.00717.91
8.2.90.0050.00319.05
8.2.80.0080.00017.97
8.2.70.0040.00417.60
8.2.60.0060.00317.93
8.2.50.0080.00018.07
8.2.40.0060.00319.94
8.2.30.0000.00718.09
8.2.20.0000.00717.76
8.2.10.0070.00018.12
8.2.00.0000.00818.02
8.1.280.0110.00425.92
8.1.270.0030.00620.08
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.82
8.1.230.0060.00919.16
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0070.00317.22
8.1.190.0070.00017.22
8.1.180.0050.00318.10
8.1.170.0030.00518.53
8.1.160.0030.00621.82
8.1.150.0070.00018.79
8.1.140.0050.00517.40
8.1.130.0030.00317.65
8.1.120.0040.00417.36
8.1.110.0040.00417.35
8.1.100.0030.00417.25
8.1.90.0040.00417.38
8.1.80.0040.00417.34
8.1.70.0020.00517.31
8.1.60.0060.00317.52
8.1.50.0040.00417.35
8.1.40.0020.00517.48
8.1.30.0080.00017.61
8.1.20.0030.00617.62
8.1.10.0060.00317.38
8.1.00.0040.00417.48
8.0.300.0080.00018.77
8.0.290.0070.00016.63
8.0.280.0070.00018.37
8.0.270.0070.00017.33
8.0.260.0050.00317.33
8.0.250.0030.00317.09
8.0.240.0000.00817.04
8.0.230.0000.00717.00
8.0.220.0030.00316.87
8.0.210.0070.00016.85
8.0.200.0040.00416.88
8.0.190.0050.00216.88
8.0.180.0040.00416.91
8.0.170.0000.00816.91
8.0.160.0000.00816.82
8.0.150.0000.00716.97
8.0.140.0000.00816.81
8.0.130.0070.00013.33
8.0.120.0040.00416.87
8.0.110.0000.00716.90
8.0.100.0040.00416.85
8.0.90.0040.00416.89
8.0.80.0090.00616.89
8.0.70.0040.00416.79
8.0.60.0000.00716.82
8.0.50.0000.00916.84
8.0.30.0090.01016.89
8.0.20.0090.00917.40
8.0.10.0080.00016.98
8.0.00.0090.01216.84
7.4.330.0030.00215.03
7.4.320.0030.00316.49
7.4.300.0000.00716.64
7.4.290.0030.00316.61
7.4.280.0000.00816.65
7.4.270.0000.00716.45
7.4.260.0000.00716.39
7.4.250.0080.00016.57
7.4.240.0020.00516.51
7.4.230.0030.00316.70
7.4.220.0100.01016.61
7.4.210.0120.00316.63
7.4.200.0040.00416.26
7.4.160.0120.00816.43
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0070.01216.55
7.4.120.0110.00616.47
7.4.110.0120.00616.55
7.4.100.0090.01416.43
7.4.90.0030.01416.53
7.4.80.0070.01019.39
7.4.70.0230.00016.56
7.4.60.0100.00716.38
7.4.50.0040.00416.38
7.4.40.0080.00816.29
7.4.30.0160.00016.46
7.4.00.0030.00714.93
7.3.330.0000.00513.39
7.3.320.0060.00013.38
7.3.310.0000.00716.28
7.3.300.0030.00316.26
7.3.290.0070.00716.39
7.3.280.0150.00116.37
7.3.270.0110.00517.40
7.3.260.0030.01416.53
7.3.250.0120.00716.40
7.3.240.0040.01316.47
7.3.230.0140.00416.39
7.3.210.0080.01116.54
7.3.200.0100.00719.39
7.3.190.0120.00416.72
7.3.180.0090.00616.40
7.3.170.0060.01216.49
7.3.160.0090.00916.62
7.2.330.0070.01116.56
7.2.320.0090.01316.71
7.2.310.0070.01016.64
7.2.300.0060.01216.64
7.2.290.0000.02216.56
7.2.80.0030.00916.57
7.2.60.0070.01016.79
7.2.00.0040.00819.44
7.1.200.0100.00015.46
7.1.100.0040.00718.28
7.1.70.0050.00516.93
7.1.60.0100.01019.86
7.1.50.0070.01316.99
7.1.00.0030.07722.36
7.0.200.0590.00314.71
7.0.60.0000.08719.97
7.0.50.0170.03717.88
7.0.40.0070.05320.05
7.0.30.0170.04320.33
7.0.20.0430.07320.23
7.0.10.0100.07320.34
7.0.00.0000.04320.07
5.6.280.0170.06020.89
5.6.210.0130.04020.73
5.6.200.0030.04318.19
5.6.190.0070.06020.52
5.6.180.0300.06320.51
5.6.170.0270.03320.51
5.6.160.0070.08020.44
5.6.150.0070.07718.18
5.6.140.0130.07718.24
5.6.130.0070.03718.18
5.6.120.0170.07020.99
5.6.110.0100.07320.99
5.6.100.0030.04721.05
5.6.90.0130.08021.00
5.6.80.0130.03020.38
5.5.350.3200.03320.32
5.5.340.0170.07318.08
5.5.330.0070.08020.57
5.5.320.0370.05720.37
5.5.310.0230.06720.27
5.5.300.0070.07317.95
5.5.290.0030.07718.07
5.5.280.0100.04020.66
5.5.270.0030.07320.77
5.5.260.0070.08020.76
5.5.250.0070.07720.47
5.5.240.0070.07320.27
5.4.450.0200.04019.56
5.4.440.0230.05319.45
5.4.430.0200.04719.30
5.4.420.0230.04019.56
5.4.410.0230.04019.32
5.4.400.0270.03319.00
5.4.390.0200.04018.99
5.4.380.0330.06319.18
5.4.370.0300.03018.84
5.4.360.0270.05319.23
5.4.350.0200.04018.87
5.4.340.0230.04018.84
5.4.320.0200.03719.06
5.4.310.0270.06319.26
5.4.300.0300.07018.86
5.4.290.0230.05019.06
5.4.280.0270.05319.22
5.4.270.0200.04319.16
5.4.260.0300.04718.95
5.4.250.0270.04319.30
5.4.240.0370.06019.10
5.4.230.0230.04719.05
5.4.220.0330.04319.11
5.4.210.0300.06318.86
5.4.200.0330.04319.11
5.4.190.0400.02018.99
5.4.180.0230.05019.05
5.4.170.0330.07019.19
5.4.160.0300.04318.94
5.4.150.0330.04319.09
5.4.140.0270.07316.48
5.4.130.0370.04316.33
5.4.120.0270.06316.34
5.4.110.0270.04716.28
5.4.100.0300.03716.28
5.4.90.0300.04016.45
5.4.80.0200.06316.52
5.4.70.0270.05016.57
5.4.60.0330.03316.54
5.4.50.0200.03316.53
5.4.40.0230.07716.51
5.4.30.0270.04316.51
5.4.20.0330.06316.37
5.4.10.0330.06316.42
5.4.00.0300.06316.28
5.3.290.0270.05716.28
5.3.280.0200.04716.28
5.3.270.0230.04316.28
5.3.260.0200.04716.28
5.3.250.0270.06716.28
5.3.240.0200.06016.28
5.3.230.0230.05016.28
5.3.220.0270.06316.28
5.3.210.0230.05016.28
5.3.200.0270.06716.28
5.3.190.0170.05016.28
5.3.180.0270.07016.28
5.3.170.0330.04316.28
5.3.160.0270.06016.28
5.3.150.0230.07016.28
5.3.140.0230.07016.28
5.3.130.0270.06716.28
5.3.120.0230.05016.28
5.3.110.0230.06716.28
5.3.100.0170.04016.28
5.3.90.0200.03716.28
5.3.80.0200.06316.28
5.3.70.0230.04016.28
5.3.60.0100.04316.28
5.3.50.0170.03716.28
5.3.40.0300.06316.28
5.3.30.0400.04716.28
5.3.20.0230.07016.28
5.3.10.0200.07316.28
5.3.00.0230.06716.28
5.2.170.0170.03016.28
5.2.160.0200.05316.28
5.2.150.0200.05016.28
5.2.140.0270.05716.28
5.2.130.0200.05716.28
5.2.120.0270.05016.28
5.2.110.0170.04316.28
5.2.100.0270.05316.28
5.2.90.0130.03316.28
5.2.80.0130.03016.28
5.2.70.0370.05016.28
5.2.60.0300.03016.28
5.2.50.0230.04016.28
5.2.40.0200.04316.28
5.2.30.0170.03716.28
5.2.20.0300.04316.28
5.2.10.0130.03016.28
5.2.00.0170.04016.28
5.1.60.0130.02716.28
5.1.50.0200.02316.28
5.1.40.0170.04316.28
5.1.30.0200.03016.28
5.1.20.0170.05716.28
5.1.10.0130.03316.28
5.1.00.0170.04316.28
5.0.50.0170.04016.28
5.0.40.0130.02716.28
5.0.30.0130.06016.28
5.0.20.0070.03016.28
5.0.10.0130.04016.28
5.0.00.0070.03316.28
4.4.90.0030.02316.28
4.4.80.0100.02016.28
4.4.70.0070.01716.28
4.4.60.0070.02716.28
4.4.50.0170.03016.28
4.4.40.0130.03716.28
4.4.30.0130.01716.28
4.4.20.0170.02716.28
4.4.10.0070.01716.28
4.4.00.0070.03016.28
4.3.110.0100.01316.28
4.3.100.0100.03316.28
4.3.90.0130.02716.28
4.3.80.0100.05316.28
4.3.70.0100.03316.28
4.3.60.0170.02016.28
4.3.50.0070.03716.28
4.3.40.0030.03016.28
4.3.30.0030.02716.28
4.3.20.0070.04316.28
4.3.10.0100.02016.28
4.3.00.0130.01016.28

preferences:
44.11 ms | 401 KiB | 5 Q