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('B', 'foo'))->getClosure(null)->bindTo(null, A::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.60.0140.00416.63
8.3.50.0080.01021.28
8.3.40.0120.00618.90
8.3.30.0070.00718.68
8.3.20.0040.00420.12
8.3.10.0070.00023.66
8.3.00.0000.00819.68
8.2.180.0120.00618.16
8.2.170.0150.00322.96
8.2.160.0100.00320.47
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0090.00017.50
8.2.110.0030.00920.52
8.2.100.0060.00618.04
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0030.00717.63
8.2.60.0030.00617.93
8.2.50.0000.01118.07
8.2.40.0040.00420.86
8.2.30.0040.00420.70
8.2.20.0040.00417.74
8.2.10.0000.00818.00
8.2.00.0040.00417.99
8.1.280.0170.00325.92
8.1.270.0100.01023.82
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0110.01122.67
8.1.230.0100.00017.66
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0090.00020.29
8.1.160.0080.00022.00
8.1.150.0020.00518.87
8.1.140.0040.00419.52
8.1.130.0030.00317.64
8.1.120.0000.00717.41
8.1.110.0080.00317.43
8.1.100.0040.00417.43
8.1.90.0000.00717.41
8.1.80.0070.00017.29
8.1.70.0000.00717.40
8.1.60.0060.00317.59
8.1.50.0050.00317.58
8.1.40.0000.00817.50
8.1.30.0000.00817.63
8.1.20.0080.00017.72
8.1.10.0000.00717.60
8.1.00.0080.00017.48
8.0.300.0000.00818.77
8.0.290.0070.00016.63
8.0.280.0040.00418.50
8.0.270.0030.00317.23
8.0.260.0030.00317.19
8.0.250.0000.00716.96
8.0.240.0040.00416.97
8.0.230.0040.00416.84
8.0.220.0050.00316.77
8.0.210.0040.00416.81
8.0.200.0000.00816.77
8.0.190.0040.00416.93
8.0.180.0000.00816.91
8.0.170.0050.00216.68
8.0.160.0050.00316.80
8.0.150.0030.00516.72
8.0.140.0030.00316.84
8.0.130.0000.00613.31
8.0.120.0050.00216.70
8.0.110.0000.00816.71
8.0.100.0030.00616.80
8.0.90.0050.00216.83
8.0.80.0140.00016.80
8.0.70.0040.00416.78
8.0.60.0070.00016.73
8.0.50.0030.00316.88
8.0.30.0100.00816.99
8.0.20.0110.00717.40
8.0.10.0070.00016.81
8.0.00.0060.01016.65
7.4.330.0000.00515.08
7.4.320.0030.00316.52
7.4.300.0030.00316.59
7.4.290.0030.00316.51
7.4.280.0030.00616.48
7.4.270.0030.00316.46
7.4.260.0070.00016.57
7.4.250.0040.00416.46
7.4.240.0030.00316.63
7.4.230.0070.00016.30
7.4.220.0110.00716.61
7.4.210.0070.00716.46
7.4.200.0070.00016.59
7.4.160.0040.01216.39
7.4.150.0100.00717.40
7.4.140.0140.00717.86
7.4.130.0160.00516.38
7.4.120.0080.00816.53
7.4.110.0090.00916.55
7.4.100.0130.00516.30
7.4.90.0120.00416.42
7.4.80.0110.00619.39
7.4.70.0110.01016.31
7.4.60.0100.00716.45
7.4.50.0030.00516.36
7.4.40.0030.01716.44
7.4.30.0130.01016.39
7.4.10.0070.01014.85
7.4.00.0040.01315.09
7.3.330.0000.00613.27
7.3.320.0000.00613.06
7.3.310.0000.00716.30
7.3.300.0070.00016.24
7.3.290.0080.00816.21
7.3.280.0050.01216.21
7.3.270.0110.00517.40
7.3.260.0050.01316.23
7.3.250.0090.00816.26
7.3.240.0110.00816.50
7.3.230.0030.01616.39
7.3.210.0050.01316.35
7.3.200.0120.00916.37
7.3.190.0060.01016.33
7.3.180.0030.01316.31
7.3.170.0080.00816.27
7.3.160.0080.01116.46
7.3.130.0130.00714.81
7.3.120.0070.01114.72
7.3.110.0070.01314.76
7.3.100.0100.00714.70
7.3.90.0090.00614.81
7.3.80.0030.01014.77
7.3.70.0060.00614.48
7.3.60.0060.01114.43
7.3.50.0040.00914.78
7.3.40.0030.01014.66
7.3.30.0000.01414.73
7.3.20.0060.00616.59
7.3.10.0060.00916.80
7.3.00.0000.01116.54
7.2.330.0120.00616.68
7.2.320.0060.01216.71
7.2.310.0030.01316.73
7.2.300.0070.01016.55
7.2.290.0170.00616.52
7.2.260.0030.01615.20
7.2.250.0090.00915.11
7.2.240.0090.00614.98
7.2.230.0130.00314.93
7.2.220.0000.01614.96
7.2.210.0090.00614.80
7.2.200.0070.01014.59
7.2.190.0060.00915.09
7.2.180.0040.01114.84
7.2.170.0060.00615.04
7.2.160.0000.01014.66
7.2.150.0000.00916.87
7.2.140.0030.01016.78
7.2.130.0070.00716.85
7.2.120.0120.00616.84
7.2.110.0070.01016.88
7.2.100.0040.00716.86
7.2.90.0070.00716.86
7.2.80.0100.00316.88
7.2.70.0030.01016.64
7.2.60.0080.00816.83
7.2.50.0090.00316.95
7.2.40.0060.00616.64
7.2.30.0040.01116.88
7.2.20.0030.01016.90
7.2.10.0090.00616.50
7.2.00.0270.01017.89
7.1.330.0070.00715.64
7.1.320.0130.00015.71
7.1.310.0090.00615.70
7.1.300.0060.00315.41
7.1.290.0070.00715.63
7.1.280.0040.01215.82
7.1.270.0000.01415.56
7.1.260.0040.00415.88
7.1.250.0000.01215.60
7.1.240.0040.01115.75
7.1.230.0110.00015.75
7.1.220.0040.00715.79
7.1.210.0060.00315.52
7.1.200.0030.01015.72
7.1.190.0080.00015.59
7.1.180.0060.00615.68
7.1.170.0070.00315.85
7.1.160.0000.01515.73
7.1.150.0070.00715.34
7.1.140.0030.01015.75
7.1.130.0000.01115.37
7.1.120.0080.00815.59
7.1.110.0000.01015.48
7.1.100.0030.00716.74
7.1.90.0070.00315.77
7.1.80.0060.00315.77
7.1.70.0000.00916.05
7.1.60.0050.00816.40
7.1.50.0100.00716.25
7.1.40.0060.01015.42
7.1.30.0000.01215.71
7.1.20.0070.00715.82
7.1.10.0080.00615.68
7.1.00.0070.03919.18
7.0.330.0080.00415.27
7.0.320.0070.00415.17
7.0.310.0030.00915.31
7.0.300.0040.00815.43
7.0.290.0080.00515.36
7.0.280.0030.00715.30
7.0.270.0030.00515.28
7.0.260.0030.00815.23
7.0.250.0040.01015.13
7.0.240.0040.00715.38
7.0.230.0030.01015.24
7.0.220.0090.00315.30
7.0.210.0080.00415.13
7.0.200.0030.00915.79
7.0.190.0040.00715.45
7.0.180.0040.00815.38
7.0.170.0040.00915.27
7.0.160.0100.00315.40
7.0.150.0030.00615.34
7.0.140.0040.00815.51
7.0.130.0000.01015.39
7.0.120.0070.00715.43
7.0.110.0070.00315.32
7.0.100.0180.02917.67
7.0.90.0240.02817.50
7.0.80.0060.04017.63
7.0.70.0050.03017.54
7.0.60.0100.04117.60
7.0.50.0070.04017.79
7.0.40.0050.04616.63
7.0.30.0000.03616.68
7.0.20.0030.04616.64
7.0.10.0040.04016.77
7.0.00.0050.04616.61
5.6.400.0040.00414.25
5.6.390.0040.01114.11
5.6.380.0060.00613.99
5.6.370.0030.00714.41
5.6.360.0120.00314.45
5.6.350.0030.01313.85
5.6.340.0030.01014.14
5.6.330.0090.00014.63
5.6.320.0080.00314.24
5.6.310.0000.01114.54
5.6.300.0000.00914.45
5.6.290.0060.00614.18
5.6.280.0050.02017.64
5.6.270.0030.00614.47
5.6.260.0060.00614.29
5.6.250.0070.04817.41
5.6.240.0060.04617.49
5.6.230.0090.03417.39
5.6.220.0080.04317.38
5.6.210.0050.03017.36
5.6.200.0030.03117.62
5.6.190.0090.04217.59
5.6.180.0090.04717.74
5.6.170.0100.04217.72
5.6.160.0050.04417.54
5.6.150.0030.03317.52
5.6.140.0070.03917.55
5.6.130.0050.04217.66
5.6.120.0120.03817.76
5.6.110.0030.04817.82
5.6.100.0060.04117.70
5.6.90.0070.04317.61
5.6.80.0080.02917.46
5.6.70.0070.04117.40
5.6.60.0100.03517.32
5.6.50.0030.02817.21
5.6.40.0120.04017.29
5.6.30.0030.04717.43
5.6.20.0080.03817.22
5.6.10.0020.04817.18
5.6.00.0050.04417.34
5.5.380.0030.04817.26
5.5.370.0050.04317.27
5.5.360.0070.04017.14
5.5.350.0100.04417.35
5.5.340.0070.04417.37
5.5.330.0030.04717.35
5.5.320.0070.04917.58
5.5.310.0070.03217.34
5.5.300.0030.05017.48
5.5.290.0100.04017.40
5.5.280.0020.03217.55
5.5.270.0050.04817.49
5.5.260.0100.02717.52
5.5.250.0140.02017.33
5.5.240.0040.04817.19
5.5.230.0020.04117.08
5.5.220.0060.04017.07
5.5.210.0100.04217.27
5.5.200.0070.04117.13
5.5.190.0080.04417.17
5.5.180.0090.04117.27
5.5.170.0110.00314.18
5.5.160.0070.03817.12
5.5.150.0130.03717.00
5.5.140.0070.03717.11
5.5.130.0050.03817.21
5.5.120.0020.05017.22
5.5.110.0080.04117.12
5.5.100.0060.04617.10
5.5.90.0050.04516.98
5.5.80.0090.03817.27
5.5.70.0050.04017.09
5.5.60.0100.02717.14
5.5.50.0060.04316.98
5.5.40.0050.04017.20
5.5.30.0100.03817.19
5.5.20.0060.04217.15
5.5.10.0100.03817.01
5.5.00.0120.03817.02
5.4.450.0120.03215.18
5.4.440.0060.04014.97
5.4.430.0060.04515.06
5.4.420.0020.04215.16
5.4.410.0050.02714.99
5.4.400.0050.03015.02
5.4.390.0070.03715.01
5.4.380.0060.03914.93
5.4.370.0030.04315.00
5.4.360.0030.03615.04
5.4.350.0050.03314.90
5.4.340.0080.04114.85
5.4.330.0100.00310.47
5.4.320.0050.03014.83
5.4.310.0020.04714.97
5.4.300.0030.04514.91
5.4.290.0030.04014.87
5.4.280.0030.04614.86
5.4.270.0040.03814.92
5.4.260.0050.02714.94
5.4.250.0060.03314.97
5.4.240.0090.03814.89
5.4.230.0050.04114.92
5.4.220.0000.04514.95
5.4.210.0060.03514.74
5.4.200.0050.03714.79
5.4.190.0070.03315.02
5.4.180.0120.03414.92
5.4.170.0030.03814.81
5.4.160.0060.03315.00
5.4.150.0110.03314.92
5.4.140.0030.03513.54
5.4.130.0030.04013.58
5.4.120.0080.03513.51
5.4.110.0050.04013.59
5.4.100.0050.03013.54
5.4.90.0030.04013.55
5.4.80.0090.03513.61
5.4.70.0020.03413.50
5.4.60.0040.04213.46
5.4.50.0070.03713.45
5.4.40.0070.03713.52
5.4.30.0020.03813.59
5.4.20.0070.01813.55
5.4.10.0130.03713.51
5.4.00.0040.03913.35

preferences:
56.73 ms | 401 KiB | 5 Q