3v4l.org

run code in 300+ PHP versions simultaneously
l<?php function callStatic($class, $method, $args, $ref, $defined, $called) { var_dump($class, $defined, $called); $ref = new \ReflectionMethod($class, $method); $ref->setAccessible(true); return $ref->invokeArgs(null, array($args)); } class n_0d19ad5d1a89cbbf06a49f56e9dcb11d { public static function foo() { var_dump(get_called_class()); return callStatic('static', 'bar', array(), array(), __CLASS__, call_user_func(function () { set_error_handler(function () { }); $called = get_called_class(); restore_error_handler(); return $called; })); } } class n_1c54f3f5b4e9e0fc521faa21fe127ad8 extends n_0d19ad5d1a89cbbf06a49f56e9dcb11d { protected static function bar() { return __CLASS__; } } echo callStatic('n_1c54f3f5b4e9e0fc521faa21fe127ad8', 'foo', array(), array(), __CLASS__, call_user_func(function () { set_error_handler(function () { }); $called = get_called_class(); restore_error_handler(); return $called; }));

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.0140.00718.49
8.3.50.0030.01221.14
8.3.40.0090.01218.98
8.3.30.0100.00320.34
8.3.20.0080.00020.33
8.3.10.0080.00021.95
8.3.00.0030.00322.46
8.2.180.0120.00316.61
8.2.170.0120.00322.96
8.2.160.0030.01020.57
8.2.150.0080.00024.18
8.2.140.0030.01224.66
8.2.130.0120.00826.16
8.2.120.0040.00419.54
8.2.110.0000.00920.48
8.2.100.0070.00417.74
8.2.90.0040.00418.22
8.2.80.0000.00719.39
8.2.70.0000.00817.63
8.2.60.0000.01217.68
8.2.50.0040.00418.07
8.2.40.0040.00417.97
8.2.30.0030.00518.07
8.2.20.0070.00017.71
8.2.10.0040.00417.70
8.2.00.0050.00317.77
8.1.280.0160.00625.92
8.1.270.0040.01120.35
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00021.98
8.1.230.0030.00720.89
8.1.220.0060.00317.74
8.1.210.0040.00418.83
8.1.200.0060.00317.35
8.1.190.0080.00017.53
8.1.180.0000.00820.52
8.1.170.0000.00918.52
8.1.160.0040.00422.21
8.1.150.0040.00418.66
8.1.140.0070.00017.27
8.1.130.0030.00317.66
8.1.120.0040.00417.41
8.1.110.0000.00717.25
8.1.100.0000.00817.28
8.1.90.0040.00417.36
8.1.80.0050.00217.30
8.1.70.0000.00717.38
8.1.60.0090.00017.46
8.1.50.0000.00817.54
8.1.40.0040.00417.55
8.1.30.0000.00817.47
8.1.20.0050.00317.57
8.1.10.0030.00617.55
8.1.00.0040.00417.38
8.0.300.0070.00020.25
8.0.290.0000.00717.16
8.0.280.0000.00718.39
8.0.270.0030.00317.28
8.0.260.0030.00316.82
8.0.250.0070.00016.89
8.0.240.0000.00917.00
8.0.230.0070.00016.92
8.0.220.0000.00716.94
8.0.210.0030.00316.92
8.0.200.0030.00317.03
8.0.190.0030.00517.10
8.0.180.0030.00616.94
8.0.170.0030.00617.05
8.0.160.0000.00716.95
8.0.150.0040.00416.94
8.0.140.0000.00816.98
8.0.130.0030.00313.40
8.0.120.0000.00816.96
8.0.110.0070.00016.91
8.0.100.0070.00016.93
8.0.90.0040.00416.81
8.0.80.0060.01616.96
8.0.70.0040.00416.76
8.0.60.0040.00417.01
8.0.50.0040.00416.97
8.0.30.0080.01117.06
8.0.20.0150.00517.40
8.0.10.0040.00417.10
8.0.00.0080.01016.79
7.4.330.0000.00515.00
7.4.320.0030.00316.65
7.4.300.0040.00416.64
7.4.290.0000.00716.56
7.4.280.0050.00316.52
7.4.270.0000.00816.41
7.4.260.0030.00316.59
7.4.250.0040.00416.62
7.4.240.0040.00316.64
7.4.230.0040.00416.70
7.4.220.0100.01616.59
7.4.210.0070.00916.68
7.4.200.0030.00316.56
7.4.190.0000.00716.40
7.4.160.0170.00716.72
7.4.150.0030.01417.40
7.4.140.0090.01317.86
7.4.130.0110.00716.56
7.4.120.0080.01016.60
7.4.110.0160.00616.57
7.4.100.0100.00816.41
7.4.90.0150.00916.59
7.4.80.0160.00619.39
7.4.70.0120.00616.55
7.4.60.0170.00716.54
7.4.50.0030.00316.64
7.4.40.0110.00722.77
7.4.30.0110.00816.45
7.4.00.0030.01215.01
7.3.330.0060.00013.32
7.3.320.0000.00513.23
7.3.310.0000.00716.43
7.3.300.0070.00016.50
7.3.290.0100.00316.41
7.3.280.0090.00716.42
7.3.270.0090.00917.40
7.3.260.0030.01316.45
7.3.250.0170.00816.47
7.3.240.0030.01416.50
7.3.230.0170.00716.44
7.3.210.0060.01316.47
7.3.200.0090.01219.39
7.3.190.0030.02016.39
7.3.180.0200.00016.44
7.3.170.0100.00716.59
7.3.160.0060.00916.52
7.3.120.0130.00314.98
7.3.10.0170.00316.12
7.3.00.0150.00416.36
7.2.330.0110.00816.49
7.2.320.0060.01216.81
7.2.310.0080.00816.48
7.2.300.0160.00016.54
7.2.290.0100.00916.70
7.2.130.0150.00916.70
7.2.120.0090.01316.46
7.2.110.0120.01216.46
7.2.100.0130.01216.36
7.2.90.0070.01516.30
7.2.80.0200.00316.47
7.2.70.0140.00916.34
7.2.60.0080.01416.66
7.2.50.0090.00916.30
7.2.40.0170.00616.85
7.2.30.0100.01016.56
7.2.20.0160.00817.05
7.2.10.0120.00816.48
7.2.00.0110.01116.42
7.1.250.0130.00915.14
7.1.200.0070.00615.70
7.1.70.0000.00817.18
7.1.60.0040.00717.16
7.1.50.0130.01016.92
7.1.00.0030.03722.45
7.0.200.0060.00616.67
7.0.140.0100.06722.23
7.0.60.0100.06719.99
7.0.50.0130.05017.99
7.0.40.0070.08320.04
7.0.30.0530.07020.06
7.0.20.0300.07020.22
7.0.10.0270.05720.16
7.0.00.0070.07320.24
5.6.280.0070.07021.11
5.6.210.0030.08320.58
5.6.200.0100.08018.28
5.6.190.0070.07720.67
5.6.180.0400.04320.46
5.6.170.0300.06320.56
5.6.160.0070.07020.71
5.6.150.0030.04018.14
5.6.140.0130.07718.19
5.6.130.0070.04318.25
5.6.120.0100.05721.03
5.6.110.0030.04021.00
5.6.100.0130.05021.13
5.6.90.0130.06720.99
5.6.80.0030.04020.38
5.6.70.0330.06720.39
5.5.350.0270.08320.30
5.5.340.0000.05017.94
5.5.330.0070.04720.19
5.5.320.0370.05320.35
5.5.310.0370.06720.28
5.5.300.0030.04717.98
5.5.290.0100.08018.03
5.5.280.0100.08320.87
5.5.270.0100.09020.66
5.5.260.0170.05720.81
5.5.250.0070.06020.57
5.5.240.0070.08020.28
5.4.450.0370.05719.49
5.4.440.0700.05719.30
5.4.430.0600.06019.41
5.4.420.0630.06019.66
5.4.410.0170.05018.71
5.4.400.1400.06018.56
5.4.390.1100.05718.55
5.4.380.0330.05318.81
5.4.370.0200.04718.79
5.4.360.0200.04718.63
5.4.350.0070.04412.03
5.4.340.0080.03912.03
5.4.320.0080.03712.52
5.4.310.0050.04612.52
5.4.300.0070.03712.53
5.4.290.0050.05112.52
5.4.280.0080.03512.42
5.4.270.0060.04012.42
5.4.260.0080.04012.42
5.4.250.0070.05318.83
5.4.240.0030.05719.00
5.4.230.0170.05718.83
5.4.220.0200.04318.76
5.4.210.0070.05319.02
5.4.200.0030.06318.89
5.4.190.0030.07018.95
5.4.180.0130.07318.82
5.4.170.0130.07718.95
5.4.160.0070.05318.93
5.4.150.0130.06018.93
5.4.140.0200.04016.58
5.4.130.0100.07016.55
5.4.120.0100.07016.36
5.4.110.0100.04716.67
5.4.100.0130.04316.49
5.4.90.0100.04716.50
5.4.80.0070.05316.44
5.4.70.0070.05316.44
5.4.60.0100.05316.38
5.4.50.0100.05716.43
5.4.40.0100.05016.43
5.4.30.0030.06716.29
5.4.20.0100.05316.35
5.4.10.0330.06316.49
5.4.00.0300.05315.91
5.3.290.0060.04312.80
5.3.280.0030.06714.61
5.3.270.0030.05714.73
5.3.260.0070.06014.72
5.3.250.0100.04714.54
5.3.240.0070.05314.61
5.3.230.0070.05314.72
5.3.220.0100.04714.82
5.3.210.0070.05314.82
5.3.200.0070.05314.68
5.3.190.0100.05714.77
5.3.180.0130.04714.58
5.3.170.0070.05014.68
5.3.160.0130.07314.77
5.3.150.0130.05314.60
5.3.140.0030.05714.72
5.3.130.0130.05314.69
5.3.120.0070.07314.75
5.3.110.0170.05014.67
5.3.100.0070.05714.16
5.3.90.0000.07714.11
5.3.80.0170.06014.04
5.3.70.0170.05714.12
5.3.60.0030.06014.09
5.3.50.0100.04713.88
5.3.40.0200.04014.07
5.3.30.0130.04714.12
5.3.20.0130.06013.71
5.3.10.0130.06013.69
5.3.00.0070.07313.75
5.2.170.0100.04011.37
5.2.160.0070.05711.16
5.2.150.0070.04311.13
5.2.140.0000.05011.10
5.2.130.0070.04711.18
5.2.120.0100.05311.13
5.2.110.0100.04711.18
5.2.100.0030.05010.94
5.2.90.0100.03311.27
5.2.80.0070.04011.00
5.2.70.0100.04311.14
5.2.60.0100.03710.89
5.2.50.0030.04311.25
5.2.40.0030.04310.93
5.2.30.0130.03310.81
5.2.20.0100.05311.04
5.2.10.0130.03710.84
5.2.00.0000.04310.63
5.1.60.0000.03710.20
5.1.50.0030.03310.04
5.1.40.0030.04010.05
5.1.30.0000.04010.42
5.1.20.0070.03710.35
5.1.10.0130.03010.12
5.1.00.0030.03710.07
5.0.50.0100.0378.79
5.0.40.0070.0238.57
5.0.30.0000.0578.38
5.0.20.0100.0238.30
5.0.10.0070.0238.27
5.0.00.0030.0438.36
4.4.90.0000.0277.35
4.4.80.0070.0177.35
4.4.70.0000.0237.35
4.4.60.0100.0207.35
4.4.50.0070.0207.35
4.4.40.0030.0337.35
4.4.30.0070.0177.35
4.4.20.0070.0307.35
4.4.10.0070.0307.35
4.4.00.0030.0337.35
4.3.110.0000.0237.35
4.3.100.0000.0337.35
4.3.90.0070.0237.35
4.3.80.0000.0377.34
4.3.70.0000.0237.34
4.3.60.0070.0177.34
4.3.50.0030.0207.34
4.3.40.0000.0377.34
4.3.30.0000.0237.34
4.3.20.0000.0237.34
4.3.10.0070.0177.34
4.3.00.0000.0236.82

preferences:
39.19 ms | 401 KiB | 5 Q