3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function foo() { echo static::class, ' in ', self::class, PHP_EOL; } } class B extends A {} B::foo(); $closure = (new ReflectionMethod('A', 'foo'))->getClosure(null)->bindTo(null, B::class); $closure();

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.0120.00318.84
8.3.30.0110.00818.80
8.3.20.0070.00020.09
8.3.10.0080.00023.60
8.3.00.0030.00619.68
8.2.170.0060.00922.96
8.2.160.0030.01020.32
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0030.00617.50
8.2.110.0080.00320.34
8.2.100.0070.00417.93
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0090.00317.91
8.2.50.0000.00818.07
8.2.40.0040.00421.25
8.2.30.0030.00320.69
8.2.20.0030.00517.69
8.2.10.0090.00018.05
8.2.00.0080.00018.02
8.1.270.0160.00023.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00622.61
8.1.230.0070.00417.54
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0050.00317.34
8.1.180.0040.00418.10
8.1.170.0050.00320.44
8.1.160.0030.00621.83
8.1.150.0000.00718.74
8.1.140.0040.00419.45
8.1.130.0000.00717.56
8.1.120.0040.00417.42
8.1.110.0030.00617.32
8.1.100.0030.00317.29
8.1.90.0000.00717.41
8.1.80.0040.00417.38
8.1.70.0030.00317.41
8.1.60.0000.00917.55
8.1.50.0000.00917.55
8.1.40.0050.00317.48
8.1.30.0000.00817.61
8.1.20.0050.00317.68
8.1.10.0090.00017.54
8.1.00.0030.00717.47
8.0.300.0070.00018.77
8.0.290.0020.00516.75
8.0.280.0040.00418.31
8.0.270.0030.00317.22
8.0.260.0040.00417.12
8.0.250.0030.00417.00
8.0.240.0040.00417.03
8.0.230.0000.00716.93
8.0.220.0000.00716.89
8.0.210.0000.00716.80
8.0.200.0000.00716.94
8.0.190.0080.00016.82
8.0.180.0050.00316.88
8.0.170.0040.00416.76
8.0.160.0040.00416.91
8.0.150.0000.00716.71
8.0.140.0000.00816.74
8.0.130.0000.00513.28
8.0.120.0070.00016.88
8.0.110.0050.00316.88
8.0.100.0000.00716.76
8.0.90.0000.00816.94
8.0.80.0090.00616.78
8.0.70.0080.00016.79
8.0.60.0040.00416.68
8.0.50.0000.00716.87
8.0.30.0110.00616.83
8.0.20.0120.00617.40
8.0.10.0000.00717.04
8.0.00.0080.00916.76
7.4.330.0000.00515.08
7.4.320.0030.00316.38
7.4.300.0040.00416.56
7.4.290.0000.00616.60
7.4.280.0000.00716.57
7.4.270.0060.00016.61
7.4.260.0000.00716.50
7.4.250.0000.00716.55
7.4.240.0050.00216.54
7.4.230.0000.00716.50
7.4.220.0030.01516.64
7.4.210.0120.00316.67
7.4.200.0030.00316.54
7.4.160.0060.01116.41
7.4.150.0090.00917.40
7.4.140.0140.01117.86
7.4.130.0120.00816.41
7.4.120.0110.00516.48
7.4.110.0100.00716.39
7.4.100.0110.00716.56
7.4.90.0070.01016.65
7.4.80.0090.01619.39
7.4.70.0090.00916.49
7.4.60.0130.00316.44
7.4.50.0050.00016.49
7.4.40.0070.01116.47
7.4.30.0030.01616.44
7.4.00.0070.01015.13
7.3.330.0020.00213.44
7.3.320.0000.00613.33
7.3.310.0030.00316.41
7.3.300.0070.00016.36
7.3.290.0060.01216.36
7.3.280.0100.00916.34
7.3.270.0130.00617.40
7.3.260.0100.00616.50
7.3.250.0080.00916.47
7.3.240.0100.01016.39
7.3.230.0090.00916.39
7.3.210.0110.00616.56
7.3.200.0150.00616.38
7.3.190.0040.01216.30
7.3.180.0120.00416.31
7.3.170.0110.00316.57
7.3.160.0100.00716.58
7.2.330.0110.00716.43
7.2.320.0150.00316.75
7.2.310.0070.01016.71
7.2.300.0130.00316.74
7.2.290.0130.01016.39
7.2.60.0060.00916.70
7.2.00.0100.00319.45
7.1.200.0030.00715.66
7.1.100.0000.01317.73
7.1.70.0110.00616.66
7.1.60.0120.01219.50
7.1.50.0090.01216.66
7.1.00.0030.07722.37
7.0.200.0080.00816.55
7.0.60.0030.04319.78
7.0.50.0130.07717.84
7.0.40.0130.08319.96
7.0.30.0270.08020.26
7.0.20.0300.05320.26
7.0.10.0100.06720.24
7.0.00.0070.09320.49
5.6.210.0070.07720.53
5.6.200.0000.06318.13
5.6.190.0070.07320.61
5.6.180.0270.08020.40
5.6.170.0270.03720.47
5.6.160.0070.07020.39
5.6.150.0030.04018.19
5.6.140.0030.04018.18
5.6.130.0070.08018.16
5.6.120.0070.04021.11
5.6.110.0130.07321.01
5.6.100.0030.08721.02
5.6.90.0200.07021.02
5.6.80.0000.04720.33
5.5.350.0000.04320.45
5.5.340.0070.08318.07
5.5.330.0030.06720.19
5.5.320.3700.04020.35
5.5.310.0200.05320.28
5.5.300.0030.05317.96
5.5.290.0000.05017.99
5.5.280.0070.08720.94
5.5.270.0130.07320.64
5.5.260.0100.04720.89
5.5.250.0000.05320.50
5.5.240.0000.07720.27
5.4.450.0770.06019.62
5.4.440.0770.06019.34
5.4.430.0770.06319.46
5.4.420.0800.05719.46
5.4.410.0930.08019.34
5.4.400.0800.05319.28
5.4.390.1000.05019.01
5.4.380.0830.05019.15
5.4.370.0800.05719.26
5.4.360.0930.05319.15
5.4.350.1030.04018.87
5.4.340.1100.05319.13
5.4.320.0700.06719.13
5.4.310.0900.06019.32
5.4.300.0830.06019.30
5.4.290.0770.05719.15
5.4.280.1030.06319.38
5.4.270.0830.04719.14
5.4.260.0870.04719.37
5.4.250.0770.05319.25
5.4.240.0800.05318.86
5.4.230.0870.04719.27
5.4.220.0800.05319.12
5.4.210.0800.04319.14
5.4.200.0870.05019.14
5.4.190.0870.05319.14
5.4.180.0870.04319.14
5.4.170.0870.05019.05
5.4.160.0870.05319.28
5.4.150.0930.05319.10
5.4.140.0770.05316.59
5.4.130.0870.04316.45
5.4.120.0830.05016.48
5.4.110.0700.05716.57
5.4.100.0770.05016.50
5.4.90.0900.07316.50
5.4.80.0770.05716.30
5.4.70.0730.05316.64
5.4.60.0800.05716.55
5.4.50.0800.05016.50
5.4.40.0800.05716.25
5.4.30.1030.05716.68
5.4.20.0770.05316.39
5.4.10.0730.07016.39
5.4.00.0770.05715.97

preferences:
53.68 ms | 400 KiB | 5 Q