3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { $f = function() { echo get_called_class()."\n"; //echo static::$bar."\n"; }; $f(); echo get_called_class()."\n"; echo static::$bar."\n"; } } class B extends A { static public $bar = 'ss'; } B::foo(); echo get_called_class()."\n";

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.0150.00018.36
8.3.50.0070.00921.15
8.3.40.0110.00718.79
8.3.30.0070.01518.96
8.3.20.0070.00020.39
8.3.10.0050.00321.96
8.3.00.0070.00020.58
8.2.180.0090.00916.75
8.2.170.0150.00022.96
8.2.160.0080.00619.20
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0110.00726.16
8.2.120.0050.00319.64
8.2.110.0060.00322.27
8.2.100.0060.00619.32
8.2.90.0040.00419.24
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0070.00018.06
8.2.30.0080.00017.94
8.2.20.0070.00017.79
8.2.10.0050.00217.62
8.2.00.0000.00817.65
8.1.280.0110.00425.92
8.1.270.0000.00818.46
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00823.83
8.1.230.0000.01218.97
8.1.220.0080.00017.80
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0040.00417.53
8.1.180.0000.00820.58
8.1.170.0050.00518.54
8.1.160.0040.00422.14
8.1.150.0040.00418.66
8.1.140.0000.00717.39
8.1.130.0000.00817.73
8.1.120.0040.00417.38
8.1.110.0060.00617.47
8.1.100.0050.00317.35
8.1.90.0000.00717.34
8.1.80.0000.00717.47
8.1.70.0050.00217.45
8.1.60.0080.00017.58
8.1.50.0020.00517.50
8.1.40.0040.00417.54
8.1.30.0030.00617.53
8.1.20.0000.00817.70
8.1.10.0040.00417.56
8.1.00.0020.00517.53
8.0.300.0040.00418.77
8.0.290.0000.00717.17
8.0.280.0090.00018.42
8.0.270.0050.00317.35
8.0.260.0030.00318.35
8.0.250.0030.00316.92
8.0.240.0000.00917.01
8.0.230.0030.00317.01
8.0.220.0000.00716.79
8.0.210.0030.00316.83
8.0.200.0060.00016.98
8.0.190.0000.00716.85
8.0.180.0040.00416.95
8.0.170.0040.00416.86
8.0.160.0040.00416.98
8.0.150.0000.00716.91
8.0.140.0000.00716.90
8.0.130.0000.00613.34
8.0.120.0030.00516.93
8.0.110.0040.00416.91
8.0.100.0030.00516.77
8.0.90.0000.00816.91
8.0.80.0030.01316.86
8.0.70.0000.00717.02
8.0.60.0040.00417.06
8.0.50.0040.00416.90
8.0.30.0120.00617.08
8.0.20.0120.00617.40
8.0.10.0000.00816.96
8.0.00.0080.00816.79
7.4.330.0000.00415.00
7.4.320.0030.00316.56
7.4.300.0000.00616.61
7.4.290.0070.00016.45
7.4.280.0040.00316.62
7.4.270.0080.00016.52
7.4.260.0040.00816.49
7.4.250.0040.00416.47
7.4.240.0020.00516.48
7.4.230.0000.00716.52
7.4.220.0070.01016.66
7.4.210.0090.00816.48
7.4.200.0000.00716.46
7.4.190.0000.00716.45
7.4.160.0150.00416.57
7.4.150.0150.01217.40
7.4.140.0080.01017.86
7.4.130.0080.00916.53
7.4.120.0060.01316.53
7.4.110.0060.01116.54
7.4.100.0080.00816.34
7.4.90.0070.01016.51
7.4.80.0130.00619.39
7.4.70.0090.00916.52
7.4.60.0090.00916.54
7.4.50.0070.00016.44
7.4.40.0120.00622.77
7.4.30.0160.00316.20
7.4.00.0040.01115.09
7.3.330.0030.00313.35
7.3.320.0000.00613.25
7.3.310.0040.00416.36
7.3.300.0000.00716.39
7.3.290.0060.01416.36
7.3.280.0080.00716.34
7.3.270.0030.01317.40
7.3.260.0200.00416.42
7.3.250.0080.00816.29
7.3.240.0160.00616.57
7.3.230.0140.00316.64
7.3.210.0110.00616.59
7.3.200.0090.00919.39
7.3.190.0060.01216.54
7.3.180.0110.00616.36
7.3.170.0080.00916.32
7.3.160.0080.00816.22
7.3.120.0060.00614.61
7.3.110.0030.01214.61
7.3.100.0060.00914.79
7.3.90.0090.00914.47
7.3.80.0030.00714.86
7.3.70.0000.00914.60
7.3.60.0090.00614.89
7.3.50.0060.00914.69
7.3.40.0000.01014.73
7.3.30.0060.01214.90
7.3.20.0100.00716.62
7.3.10.0070.01016.64
7.3.00.0140.00416.58
7.2.330.0090.00916.72
7.2.320.0140.00716.39
7.2.310.0130.01016.51
7.2.300.0100.00716.42
7.2.290.0080.00816.53
7.2.240.0100.01015.03
7.2.230.0030.01015.03
7.2.220.0030.01215.27
7.2.210.0040.00815.02
7.2.200.0090.00014.91
7.2.190.0090.00314.93
7.2.180.0040.00714.90
7.2.170.0090.00614.96
7.2.160.0060.01215.03
7.2.150.0000.01816.88
7.2.140.0070.01016.78
7.2.130.0040.01416.67
7.2.120.0090.00916.95
7.2.110.0000.01716.86
7.2.100.0070.01116.75
7.2.90.0030.01616.88
7.2.80.0080.00416.73
7.2.70.0060.01216.95
7.2.60.0000.01216.86
7.2.50.0110.00716.78
7.2.40.0080.00817.03
7.2.30.0030.01016.99
7.2.20.0060.00316.95
7.2.10.0030.01417.09
7.2.00.0060.01018.20
7.1.330.0100.00715.70
7.1.320.0060.00915.89
7.1.310.0070.00715.80
7.1.300.0030.01015.59
7.1.290.0030.01015.76
7.1.280.0100.00615.91
7.1.270.0040.01215.38
7.1.260.0060.00615.61
7.1.250.0120.00315.89
7.1.100.0070.01118.21
7.1.70.0000.00816.98
7.1.60.0120.01219.82
7.1.50.0030.01716.78
7.1.00.0100.03322.42
7.0.200.0060.00616.63
7.0.140.0000.07022.07
7.0.60.0100.04319.91
7.0.50.0100.05317.79
7.0.40.0030.10020.21
7.0.30.0230.05020.33
7.0.20.0230.04320.06
7.0.10.0100.06720.30
7.0.00.0100.05320.14
5.6.280.0070.06720.81
5.6.210.0100.05320.47
5.6.200.0030.09018.25
5.6.190.0130.04320.57
5.6.180.0330.06720.67
5.6.170.0400.04020.46
5.6.160.0030.04320.39
5.6.150.0100.03718.15
5.6.140.0070.08018.11
5.6.130.0030.06018.28
5.6.120.0070.08721.13
5.6.110.0130.07321.13
5.6.100.0070.05021.09
5.6.90.0030.09321.01
5.6.80.0130.03320.38
5.5.350.0000.03720.34
5.5.340.0000.04318.09
5.5.330.0130.05720.21
5.5.320.0230.07720.27
5.5.310.0330.07020.32
5.5.300.0070.08317.95
5.5.290.0070.05717.93
5.5.280.0170.06320.80
5.5.270.0000.04320.88
5.5.260.0000.04720.96
5.5.250.0100.06720.62
5.5.240.0270.06720.36
5.4.450.0200.04319.53
5.4.440.0200.03719.50
5.4.430.0270.03019.63
5.4.420.0200.03719.52
5.4.410.0130.05319.28
5.4.400.0130.04319.00
5.4.390.0130.05019.00
5.4.380.0200.06719.06
5.4.370.0270.07019.08
5.4.360.0230.04018.98
5.4.350.0130.04019.13
5.4.340.0370.06718.95
5.4.320.0270.03318.98
5.4.310.0270.03319.09
5.4.300.0300.02719.25
5.4.290.0270.04019.21
5.4.280.0330.06719.26
5.4.270.0270.04318.99
5.4.260.0230.07019.05
5.4.250.0300.03019.13
5.4.240.0270.04719.05
5.4.230.0230.03718.83
5.4.220.0200.06319.34
5.4.210.0130.04318.98
5.4.200.0130.04019.13
5.4.190.0200.03719.15
5.4.180.0270.06719.07
5.4.170.0200.05019.14
5.4.160.0130.04019.06
5.4.150.0200.05319.13
5.4.140.0130.04316.70
5.4.130.0230.03316.33
5.4.120.0130.06016.49
5.4.110.0200.04016.50
5.4.100.0200.03316.52
5.4.90.0230.07016.61
5.4.80.0170.04316.57
5.4.70.0270.06316.44
5.4.60.0230.06316.49
5.4.50.0230.05716.52
5.4.40.0470.04316.38
5.4.30.0400.07016.15
5.4.20.0270.07016.52
5.4.10.0230.04716.43
5.4.00.0230.06715.78
5.3.290.0200.05314.61
5.3.280.0270.07014.50
5.3.270.0300.05014.66
5.3.260.0230.04314.62
5.3.250.0300.06014.69
5.3.240.0270.03714.72
5.3.230.0300.05014.65
5.3.220.0300.03714.56
5.3.210.0370.06714.55
5.3.200.0270.03714.47
5.3.190.0270.06014.63
5.3.180.0270.06714.64
5.3.170.0230.04014.54
5.3.160.0300.06014.49
5.3.150.0270.04714.48
5.3.140.0330.06014.64
5.3.130.0500.06014.55
5.3.120.0270.04314.61
5.3.110.0300.06714.57
5.3.100.0230.04013.96
5.3.90.0330.06313.93
5.3.80.0270.04713.92
5.3.70.0330.06714.03
5.3.60.0270.07014.02
5.3.50.0400.07013.88
5.3.40.0300.04014.04
5.3.30.0270.05713.85
5.3.20.0270.04013.78
5.3.10.0330.05713.66
5.3.00.0370.05313.87
5.2.170.0200.03311.12
5.2.160.0270.04311.29
5.2.150.0170.03311.10
5.2.140.0170.04711.20
5.2.130.0200.06011.00
5.2.120.0170.03011.01
5.2.110.0200.03311.18
5.2.100.0230.05011.01
5.2.90.0200.05311.11
5.2.80.0200.04311.00
5.2.70.0170.06011.07
5.2.60.0270.04311.05
5.2.50.0170.06010.95
5.2.40.0200.05710.93
5.2.30.0200.02710.86
5.2.20.0200.05311.07
5.2.10.0170.04010.77
5.2.00.0130.03010.71
5.1.60.0170.0209.97
5.1.50.0100.05010.07
5.1.40.0130.05310.20
5.1.30.0200.04310.29
5.1.20.0130.03710.28
5.1.10.0330.02710.15
5.1.00.0100.02710.02
5.0.50.0130.0338.53
5.0.40.0070.0378.40
5.0.30.0070.0308.08
5.0.20.0030.0238.09
5.0.10.0100.0178.08
5.0.00.0130.0378.07
4.4.90.0070.0307.99
4.4.80.0070.0177.99
4.4.70.0070.0137.99
4.4.60.0070.0177.99
4.4.50.0030.0177.99
4.4.40.0070.0237.99
4.4.30.0030.0177.99
4.4.20.0030.0177.99
4.4.10.0070.0177.99
4.4.00.0070.0477.99
4.3.110.0170.0237.99
4.3.100.0070.0437.99
4.3.90.0070.0177.99
4.3.80.0100.0307.99
4.3.70.0070.0377.99
4.3.60.0170.0177.99
4.3.50.0070.0177.99
4.3.40.0070.0337.99
4.3.30.0030.0177.99
4.3.20.0000.0207.99
4.3.10.0030.0177.99
4.3.00.0070.0207.99

preferences:
45.82 ms | 401 KiB | 5 Q