3v4l.org

run code in 300+ PHP versions simultaneously
<?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() { 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.43
8.3.50.0070.01121.15
8.3.40.0110.00418.84
8.3.30.0070.00720.39
8.3.20.0000.00820.13
8.3.10.0040.00422.09
8.3.00.0040.00422.39
8.2.180.0110.00418.29
8.2.170.0080.00822.96
8.2.160.0100.00720.36
8.2.150.0080.00024.18
8.2.140.0180.00424.66
8.2.130.0080.00826.16
8.2.120.0050.00319.77
8.2.110.0030.00621.13
8.2.100.0030.00918.03
8.2.90.0030.00619.21
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0030.00618.10
8.2.40.0040.00520.60
8.2.30.0000.00719.20
8.2.20.0000.00717.61
8.2.10.0040.00417.68
8.2.00.0030.00517.80
8.1.280.0070.01125.92
8.1.270.0060.00320.40
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0000.00921.24
8.1.230.0040.00820.32
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.00817.22
8.1.190.0000.00817.12
8.1.180.0040.00418.10
8.1.170.0050.00318.55
8.1.160.0000.00818.82
8.1.150.0000.00820.16
8.1.140.0040.00417.34
8.1.130.0000.00717.82
8.1.120.0000.00717.31
8.1.110.0030.00517.43
8.1.100.0030.00517.36
8.1.90.0000.00717.40
8.1.80.0000.00817.32
8.1.70.0030.00317.31
8.1.60.0000.00917.57
8.1.50.0040.00417.53
8.1.40.0000.00817.39
8.1.30.0030.00517.54
8.1.20.0060.00317.45
8.1.10.0000.00717.42
8.1.00.0040.00417.38
8.0.300.0070.00418.77
8.0.290.0090.00016.75
8.0.280.0080.00018.28
8.0.270.0080.00017.22
8.0.260.0030.00316.83
8.0.250.0070.00016.85
8.0.240.0000.00817.01
8.0.230.0030.00316.91
8.0.220.0000.00716.88
8.0.210.0080.00016.84
8.0.200.0020.00517.00
8.0.190.0090.00017.05
8.0.180.0060.00316.89
8.0.170.0000.00916.86
8.0.160.0040.00416.85
8.0.150.0040.00416.90
8.0.140.0030.00716.97
8.0.130.0030.00313.44
8.0.120.0080.00016.95
8.0.110.0050.00216.87
8.0.100.0090.00016.83
8.0.90.0040.00416.84
8.0.80.0060.01216.86
8.0.70.0000.00717.04
8.0.60.0040.00416.75
8.0.50.0000.00716.84
8.0.30.0120.00717.02
8.0.20.0110.01217.40
8.0.10.0000.00716.91
8.0.00.0080.01016.80
7.4.330.0000.00515.00
7.4.320.0070.00016.60
7.4.300.0000.00716.47
7.4.290.0000.00716.63
7.4.280.0030.00316.47
7.4.270.0000.00716.55
7.4.260.0030.00316.59
7.4.250.0030.00616.44
7.4.240.0060.00116.52
7.4.230.0040.00416.52
7.4.220.0090.00916.70
7.4.210.0090.00616.48
7.4.200.0000.00716.53
7.4.190.0050.00316.49
7.4.160.0170.00316.56
7.4.150.0110.00717.40
7.4.140.0070.01217.86
7.4.130.0080.01016.61
7.4.120.0070.01016.62
7.4.110.0160.00316.60
7.4.100.0030.01516.50
7.4.90.0100.00716.57
7.4.80.0060.01319.39
7.4.70.0160.00716.66
7.4.60.0070.01016.53
7.4.50.0030.00616.57
7.4.40.0130.00322.77
7.4.30.0060.01716.77
7.4.00.0060.00615.01
7.3.330.0030.00313.41
7.3.320.0060.00013.33
7.3.310.0080.00016.44
7.3.300.0020.00516.31
7.3.290.0050.01216.40
7.3.280.0070.01116.33
7.3.270.0030.01417.40
7.3.260.0100.00616.61
7.3.250.0100.00716.47
7.3.240.0070.01116.56
7.3.230.0040.01516.45
7.3.210.0070.01316.48
7.3.200.0120.00819.39
7.3.190.0090.01416.50
7.3.180.0170.00616.45
7.3.170.0100.00616.49
7.3.160.0110.00816.63
7.3.120.0030.01414.96
7.3.110.0040.01214.99
7.3.100.0040.01215.02
7.3.90.0040.00814.71
7.3.80.0090.00615.15
7.3.70.0000.01614.52
7.3.60.0060.00915.05
7.3.50.0030.01414.90
7.3.40.0070.00715.00
7.3.30.0100.00314.96
7.3.20.0040.01116.72
7.3.10.0000.01216.71
7.3.00.0070.00316.70
7.2.330.0070.01016.78
7.2.320.0090.00916.75
7.2.310.0070.01016.74
7.2.300.0070.01016.79
7.2.290.0060.01116.70
7.2.240.0000.01615.33
7.2.230.0070.01015.21
7.2.220.0070.01015.07
7.2.210.0060.00915.19
7.2.200.0040.01414.82
7.2.190.0090.00615.15
7.2.180.0030.01215.03
7.2.170.0070.00714.99
7.2.160.0140.00015.12
7.2.150.0100.00316.95
7.2.140.0040.01016.93
7.2.130.0000.01516.90
7.2.120.0060.00616.79
7.2.110.0100.00616.89
7.2.100.0080.00817.00
7.2.90.0000.01316.89
7.2.80.0040.00417.00
7.2.70.0130.00317.05
7.2.60.0050.00516.69
7.2.50.0060.00916.92
7.2.40.0110.00416.76
7.2.30.0100.00316.90
7.2.20.0080.00616.82
7.2.10.0000.01316.98
7.2.00.0080.00518.21
7.1.330.0060.00615.74
7.1.320.0100.00315.54
7.1.310.0060.00615.95
7.1.300.0060.00615.63
7.1.290.0120.00015.92
7.1.280.0030.00715.75
7.1.270.0030.00615.76
7.1.260.0030.00715.54
7.1.250.0080.00815.57
7.1.200.0040.00815.92
7.1.100.0040.00817.91
7.1.70.0030.00516.84
7.1.60.0130.01319.40
7.1.50.0110.01416.85
7.1.00.0070.06022.32
7.0.200.0000.01816.73
7.0.140.0100.06722.09
7.0.60.0030.04319.91
7.0.50.0070.09017.98
7.0.40.0170.04320.21
7.0.30.0170.04720.16
7.0.20.0400.06720.23
7.0.10.0170.07720.12
7.0.00.0000.07020.33
5.6.280.0130.06321.17
5.6.210.0100.07720.63
5.6.200.0030.08018.16
5.6.190.0100.08320.64
5.6.180.0300.03720.52
5.6.170.0230.08320.48
5.6.160.0170.07020.39
5.6.150.0030.03718.15
5.6.140.0030.06018.22
5.6.130.0030.08318.13
5.6.120.0100.08021.00
5.6.110.0070.08321.01
5.6.100.0070.04021.13
5.6.90.0000.04720.99
5.6.80.0100.07720.55
5.5.350.3900.04020.49
5.5.340.0070.03718.05
5.5.330.0030.04720.57
5.5.320.0370.07720.32
5.5.310.0370.04320.51
5.5.300.0030.04017.93
5.5.290.0070.05317.93
5.5.280.0100.08020.79
5.5.270.0000.04720.75
5.5.260.0070.09020.91
5.5.250.0100.06720.63
5.5.240.0100.07720.25
5.4.450.0430.05319.28
5.4.440.0270.06719.57
5.4.430.0800.06019.54
5.4.420.0830.05319.59
5.4.410.0170.07019.08
5.4.400.1630.06318.68
5.4.390.0970.07318.82
5.4.380.0230.05718.75
5.4.370.0170.07318.84
5.4.360.0130.05018.81
5.4.350.0120.03712.04
5.4.340.0100.04112.04
5.4.320.0060.04112.52
5.4.310.0060.04012.52
5.4.300.0100.03612.53
5.4.290.0070.03812.52
5.4.280.0070.03712.42
5.4.270.0040.04112.41
5.4.260.0080.05012.41
5.4.250.0000.05718.97
5.4.240.0030.06318.96
5.4.230.0100.05718.91
5.4.220.0200.06718.97
5.4.210.0100.05018.94
5.4.200.0100.05718.93
5.4.190.0030.06318.79
5.4.180.0000.06718.99
5.4.170.0030.06718.62
5.4.160.0030.05719.05
5.4.150.0070.05719.01
5.4.140.0070.05316.42
5.4.130.0030.05716.50
5.4.120.0030.05016.55
5.4.110.0100.04716.57
5.4.100.0100.04316.37
5.4.90.0070.05316.53
5.4.80.0030.05016.47
5.4.70.0130.05716.57
5.4.60.0100.05016.33
5.4.50.0170.06316.30
5.4.40.0130.04316.41
5.4.30.0030.05316.58
5.4.20.0130.06316.37
5.4.10.0170.04316.50
5.4.00.0200.04315.84
5.3.290.0150.05712.80
5.3.280.0200.05314.76
5.3.270.0030.08314.61
5.3.260.0130.05014.61
5.3.250.0030.05714.64
5.3.240.0100.05314.64
5.3.230.0030.05314.62
5.3.220.0000.06014.76
5.3.210.0030.05314.76
5.3.200.0100.04714.59
5.3.190.0070.06714.68
5.3.180.0130.05314.58
5.3.170.0100.05714.77
5.3.160.0100.04714.57
5.3.150.0170.04714.66
5.3.140.0030.05714.67
5.3.130.0170.04714.75
5.3.120.0070.05314.55
5.3.110.0070.05314.48
5.3.100.0130.04714.07
5.3.90.0200.05714.27
5.3.80.0030.05714.15
5.3.70.0130.04714.13
5.3.60.0130.07014.16
5.3.50.0200.04313.80
5.3.40.0130.04314.08
5.3.30.0130.04714.12
5.3.20.0100.06313.69
5.3.10.0100.04713.66
5.3.00.0130.06013.66
5.2.170.0130.03711.37
5.2.160.0070.04011.32
5.2.150.0000.05311.30
5.2.140.0170.05011.13
5.2.130.0030.04711.19
5.2.120.0230.05311.18
5.2.110.0170.03311.19
5.2.100.0100.03710.93
5.2.90.0070.04311.09
5.2.80.0170.04710.93
5.2.70.0030.06011.18
5.2.60.0070.04011.12
5.2.50.0070.03711.11
5.2.40.0070.03710.98
5.2.30.0130.03310.96
5.2.20.0130.04010.79
5.2.10.0070.04310.83
5.2.00.0070.04010.82
5.1.60.0000.0379.96
5.1.50.0070.04310.15
5.1.40.0070.03310.03
5.1.30.0070.03310.30
5.1.20.0100.03310.45
5.1.10.0000.04310.13
5.1.00.0100.03310.15
5.0.50.0070.0278.55
5.0.40.0000.0308.57
5.0.30.0030.0408.07
5.0.20.0030.0278.04
5.0.10.0100.0278.37
5.0.00.0030.0408.21
4.4.90.0070.0177.35
4.4.80.0030.0237.35
4.4.70.0070.0177.35
4.4.60.0030.0237.35
4.4.50.0030.0207.35
4.4.40.0000.0437.35
4.4.30.0030.0207.35
4.4.20.0070.0207.35
4.4.10.0100.0137.35
4.4.00.0030.0307.35
4.3.110.0030.0237.35
4.3.100.0130.0177.35
4.3.90.0030.0207.35
4.3.80.0000.0407.35
4.3.70.0030.0277.35
4.3.60.0100.0207.36
4.3.50.0100.0237.36
4.3.40.0030.0337.36
4.3.30.0000.0237.36
4.3.20.0070.0177.36
4.3.10.0030.0277.36
4.3.00.0030.0276.46

preferences:
45.97 ms | 401 KiB | 5 Q