3v4l.org

run code in 200+ PHP versions simultaneously
<?php class A { private static function testprivate() { return 1; } public static function test() { return function() { return self::testprivate(); }; } } class B extends A { } $fn = B::test(); echo $fn();

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)
7.4.10.0060.01015.13
7.4.00.0060.00714.74
7.3.130.0140.00014.80
7.3.120.0070.01114.75
7.3.110.0090.00614.45
7.3.100.0090.00614.54
7.3.90.0030.00714.99
7.3.80.0140.00314.70
7.3.70.0030.01214.75
7.3.60.0070.00714.76
7.3.50.0060.00314.80
7.3.40.0060.00614.71
7.3.30.0040.01114.66
7.3.20.0060.00616.38
7.3.10.0050.00716.50
7.3.00.0110.00416.59
7.2.260.0040.01414.68
7.2.250.0060.01314.95
7.2.240.0030.01414.94
7.2.230.0030.01215.14
7.2.220.0060.01215.11
7.2.210.0090.00015.24
7.2.200.0040.01214.95
7.2.190.0000.01514.82
7.2.180.0090.00315.18
7.2.170.0070.00715.20
7.2.160.0090.00614.97
7.2.150.0060.00816.66
7.2.140.0030.00617.13
7.2.130.0080.00716.96
7.2.120.0070.00717.04
7.2.110.0030.00716.94
7.2.100.0070.00816.83
7.2.90.0040.01016.89
7.2.80.0020.01516.79
7.2.70.0030.00816.85
7.2.60.0040.01016.86
7.2.50.0040.00916.98
7.2.40.0060.01016.77
7.2.30.0050.00916.80
7.2.20.0020.01217.01
7.2.10.0070.00516.93
7.2.00.0070.00716.99
7.1.330.0030.01315.40
7.1.320.0060.00915.83
7.1.310.0040.00715.78
7.1.300.0000.00815.57
7.1.290.0060.00615.64
7.1.280.0070.00715.72
7.1.270.0100.00315.45
7.1.260.0090.00315.71
7.1.250.0070.00515.64
7.1.240.0040.00715.56
7.1.230.0000.01315.68
7.1.220.0040.00415.73
7.1.210.0000.01015.59
7.1.200.0050.00515.80
7.1.190.0000.01515.43
7.1.180.0070.00715.67
7.1.170.0060.00315.82
7.1.160.0030.01015.56
7.1.150.0000.00915.77
7.1.140.0040.00715.70
7.1.130.0070.00715.63
7.1.120.0090.00615.87
7.1.110.0040.00715.68
7.1.100.0090.00015.47
7.1.90.0040.00415.71
7.1.80.0000.01215.77
7.1.70.0020.00716.24
7.1.60.0050.00817.59
7.1.50.0100.00716.35
7.1.40.0030.01015.60
7.1.30.0060.00315.72
7.1.20.0040.01115.59
7.1.10.0090.00015.42
7.1.00.0030.04419.04
7.0.330.0040.00415.26
7.0.320.0090.00015.15
7.0.310.0000.01115.44
7.0.300.0090.00015.33
7.0.290.0070.01015.38
7.0.280.0040.00815.09
7.0.270.0080.00415.38
7.0.260.0070.00715.18
7.0.250.0040.00715.49
7.0.240.0040.01115.38
7.0.230.0000.00915.41
7.0.220.0070.00415.39
7.0.210.0000.01315.18
7.0.200.0060.00615.12
7.0.190.0090.00315.27
7.0.180.0100.00315.39
7.0.170.0070.00315.32
7.0.160.0000.01315.39
7.0.150.0000.01315.07
7.0.140.0020.04118.63
7.0.130.0000.01115.23
7.0.120.0000.01115.08
7.0.110.0030.01215.07
7.0.100.0120.03217.66
7.0.90.0240.03517.48
7.0.80.0080.02917.67
7.0.70.0160.04417.64
7.0.60.0240.03317.66
7.0.50.0090.04217.87
7.0.40.0070.04216.67
7.0.30.0060.04216.65
7.0.20.0020.04216.73
7.0.10.0050.03616.74
7.0.00.0030.03516.60
5.6.400.0030.00713.98
5.6.390.0070.00413.98
5.6.380.0080.00814.16
5.6.370.0040.00714.39
5.6.360.0070.00314.35
5.6.350.0030.01314.01
5.6.340.0030.01013.99
5.6.330.0000.01214.25
5.6.320.0040.01114.51
5.6.310.0000.01414.40
5.6.300.0120.00313.88
5.6.290.0030.01314.28
5.6.280.0060.03817.67
5.6.270.0000.01314.04
5.6.260.0040.00414.40
5.6.250.0090.04017.45
5.6.240.0140.03517.50
5.6.230.0120.04017.36
5.6.220.0070.03217.40
5.6.210.0140.03317.60
5.6.200.0070.04317.66
5.6.190.0080.04317.65
5.6.180.0090.04217.80
5.6.170.0020.04617.65
5.6.160.0100.02217.56
5.6.150.0030.03017.72
5.6.140.0070.04617.84
5.6.130.0030.04117.57
5.6.120.0120.03917.59
5.6.110.0100.04017.56
5.6.100.0070.04017.59
5.6.90.0050.04017.73
5.6.80.0080.02317.38
5.6.70.0070.04317.39
5.6.60.0100.02017.43
5.6.50.0030.04517.54
5.6.40.0120.04017.26
5.6.30.0030.03217.28
5.6.20.0060.04417.35
5.6.10.0080.02517.34
5.6.00.0070.03917.30
5.5.380.0090.02217.37
5.5.370.0030.04017.25
5.5.360.0050.04617.38
5.5.350.0080.03017.43
5.5.340.0080.02717.56
5.5.330.0060.03817.50
5.5.320.0030.04517.54
5.5.310.0060.02717.57
5.5.300.0090.02817.43
5.5.290.0050.04917.40
5.5.280.0120.03517.53
5.5.270.0100.03317.62
5.5.260.0130.04017.52
5.5.250.0070.02617.44
5.5.240.0050.03817.32
5.5.230.0070.02717.27
5.5.220.0070.04217.35
5.5.210.0030.02717.04
5.5.200.0100.02217.33
5.5.190.0050.03117.12
5.5.180.0030.03117.26
5.5.170.0000.01314.24
5.5.160.0030.02917.22
5.5.150.0070.04217.15
5.5.140.0020.04917.06
5.5.130.0020.04817.33
5.5.120.0100.03817.33
5.5.110.0060.04317.16
5.5.100.0080.03516.97
5.5.90.0090.03917.15
5.5.80.0050.04217.13
5.5.70.0030.04717.22
5.5.60.0110.03617.16
5.5.50.0110.04017.11
5.5.40.0030.04417.18
5.5.30.0050.04317.20
5.5.20.0030.04116.91
5.5.10.0070.03417.00
5.5.00.0020.03517.01
5.4.450.0040.04215.89
5.4.440.0050.04215.98
5.4.430.0030.04615.96
5.4.420.0050.04415.86
5.4.410.0060.03515.82
5.4.400.0060.03815.81
5.4.390.0050.04215.78
5.4.380.0060.02915.75
5.4.370.0050.02315.65
5.4.360.0060.02815.71
5.4.350.0080.03715.64
5.4.340.0050.04315.70
5.4.330.0000.00612.43
5.4.320.0080.03515.69
5.4.310.0070.03715.83
5.4.300.0030.02615.78
5.4.290.0050.04215.78
5.4.280.0050.02815.81
5.4.270.0080.03315.66
5.4.260.0100.03515.74
5.4.250.0070.04015.65
5.4.240.0070.02615.74
5.4.230.0070.04015.73
5.4.220.0140.02815.73
5.4.210.0070.03515.79
5.4.200.0070.03615.78
5.4.190.0050.02515.83
5.4.180.0030.03815.81
5.4.170.0100.03615.82
5.4.160.0050.04115.82
5.4.150.0100.03415.75
5.4.140.0070.03614.41
5.4.130.0030.03714.45
5.4.120.0120.02814.41
5.4.110.0100.03614.46
5.4.100.0060.03614.44
5.4.90.0050.03514.39
5.4.80.0050.03414.43
5.4.70.0030.04314.49
5.4.60.0050.02814.46
5.4.50.0050.04014.46
5.4.40.0020.04014.39
5.4.30.0090.03514.46
5.4.20.0090.03814.44
5.4.10.0070.03014.37
5.4.00.0080.03314.20
5.3.290.0100.07014.62
5.3.280.0170.05014.62
5.3.270.0070.07714.68
5.3.260.0100.07014.62
5.3.250.0130.07014.68
5.3.240.0100.07014.54
5.3.230.0100.06714.70
5.3.220.0070.08014.64
5.3.210.0070.07314.50
5.3.200.0070.07314.55
5.3.190.0100.07014.56
5.3.180.0070.08014.59
5.3.170.0170.06314.66
5.3.160.0000.08014.55
5.3.150.0100.07314.70
5.3.140.0030.06314.57
5.3.130.0070.06014.66
5.3.120.0030.05714.67
5.3.110.0170.06714.53
5.3.100.0130.06714.16
5.3.90.0130.04714.16
5.3.80.0030.04014.04
5.3.70.0030.04314.01
5.3.60.0030.08013.90
5.3.50.0170.06314.02
5.3.40.0100.05713.89
5.3.30.0000.06314.04
5.3.20.0100.06713.69
5.3.10.0070.05313.78
5.3.00.0100.04313.72
5.2.170.0000.04711.05
5.2.160.0030.06311.21
5.2.150.0030.03311.14
5.2.140.0030.06011.03
5.2.130.0000.04711.02
5.2.120.0100.05311.15
5.2.110.0070.05011.18
5.2.100.0070.04710.97
5.2.90.0000.03711.17
5.2.80.0030.03311.01
5.2.70.0070.03311.15
5.2.60.0030.06010.92
5.2.50.0100.04011.08
5.2.40.0030.05310.88
5.2.30.0000.06010.86
5.2.20.0070.03011.03
5.2.10.0000.06310.79
5.2.00.0170.03710.67
5.1.60.0000.04010.08
5.1.50.0070.05010.07
5.1.40.0100.04010.01
5.1.30.0100.05010.33
5.1.20.0000.05710.48
5.1.10.0030.05310.16
5.1.00.0000.04010.13
5.0.50.0070.0438.55
5.0.40.0030.0308.50
5.0.30.0030.0508.49
5.0.20.0030.0278.49
5.0.10.0000.0408.49
5.0.00.0030.0538.49
4.4.90.0000.0378.49
4.4.80.0030.0338.49
4.4.70.0030.0378.49
4.4.60.0030.0338.49
4.4.50.0070.0238.49
4.4.40.0030.0508.49
4.4.30.0000.0408.49
4.4.20.0070.0308.49
4.4.10.0100.0308.49
4.4.00.0030.0508.49
4.3.110.0070.0178.49
4.3.100.0000.0278.49
4.3.90.0030.0208.49
4.3.80.0000.0378.49
4.3.70.0030.0338.49
4.3.60.0000.0378.49
4.3.50.0070.0238.49
4.3.40.0000.0538.49
4.3.30.0030.0378.49
4.3.20.0070.0308.49
4.3.10.0030.0278.49
4.3.00.0030.0338.49