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.0080.00816.88
8.3.50.0070.01017.61
8.3.40.0060.00918.57
8.3.30.0040.01118.80
8.3.20.0080.00018.90
8.3.10.0080.00020.71
8.3.00.0040.00419.38
8.2.180.0070.00716.38
8.2.170.0140.00422.96
8.2.160.0150.00621.19
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.79
8.2.110.0030.00720.95
8.2.100.0110.00017.91
8.2.90.0060.00419.09
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0000.00720.61
8.2.30.0030.00718.13
8.2.20.0040.00417.71
8.2.10.0000.00717.73
8.2.00.0000.00717.80
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00920.81
8.1.230.0030.00717.83
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00318.40
8.1.160.0000.00822.07
8.1.150.0030.00618.66
8.1.140.0000.00717.38
8.1.130.0000.00717.70
8.1.120.0060.00317.51
8.1.110.0000.00717.43
8.1.100.0050.00217.47
8.1.90.0070.00017.46
8.1.80.0030.00517.51
8.1.70.0070.00017.34
8.1.60.0060.00317.60
8.1.50.0040.00417.35
8.1.40.0040.00417.50
8.1.30.0030.00617.66
8.1.20.0040.00417.66
8.1.10.0000.00717.63
8.1.00.0080.00017.54
8.0.300.0030.00618.77
8.0.290.0000.00816.75
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0030.00316.76
8.0.250.0060.00317.05
8.0.240.0030.00617.00
8.0.230.0030.00317.04
8.0.220.0000.00716.94
8.0.210.0030.00317.04
8.0.200.0000.00716.89
8.0.190.0000.00717.02
8.0.180.0000.00717.02
8.0.170.0030.00616.87
8.0.160.0040.00416.85
8.0.150.0090.00016.79
8.0.140.0090.00016.95
8.0.130.0030.00313.34
8.0.120.0000.00816.81
8.0.110.0040.00416.96
8.0.100.0000.00716.94
8.0.90.0040.00417.00
8.0.80.0100.00616.95
8.0.70.0000.00816.79
8.0.60.0080.00016.91
8.0.50.0030.00516.86
8.0.30.0130.01117.18
8.0.20.0070.01117.22
8.0.10.0040.00417.11
8.0.00.0120.00816.99
7.4.330.0000.00512.97
7.4.320.0000.00916.63
7.4.300.0060.00016.53
7.4.290.0040.00416.62
7.4.280.0060.00316.54
7.4.270.0070.00016.43
7.4.260.0050.00013.29
7.4.250.0000.00816.56
7.4.240.0060.00316.56
7.4.230.0000.00716.69
7.4.220.0060.01916.59
7.4.210.0080.00616.57
7.4.200.0040.00416.41
7.4.190.0030.00316.47
7.4.160.0080.00816.57
7.4.150.0140.00316.53
7.4.140.0080.00916.58
7.4.130.0110.00816.49
7.4.120.0100.01216.72
7.4.110.0100.01016.52
7.4.100.0090.00616.59
7.4.90.0070.01016.37
7.4.80.0070.01619.39
7.4.70.0150.00616.56
7.4.60.0130.00316.64
7.4.50.0030.00816.38
7.4.40.0060.00916.35
7.4.30.0130.00516.67
7.4.00.0000.01414.67
7.3.330.0040.00413.33
7.3.320.0000.00513.34
7.3.310.0030.00316.27
7.3.300.0030.00316.26
7.3.290.0040.01116.33
7.3.280.0090.00716.36
7.3.270.0110.00716.30
7.3.260.0130.00716.61
7.3.250.0090.01616.40
7.3.240.0080.00816.47
7.3.230.0090.00916.52
7.3.210.0120.00616.48
7.3.200.0030.01316.44
7.3.190.0100.01116.54
7.3.180.0120.00616.41
7.3.170.0120.00816.51
7.3.160.0080.00816.44
7.3.120.0090.00614.54
7.3.10.0060.00916.74
7.3.00.0070.01016.36
7.2.330.0110.00616.81
7.2.320.0150.00316.43
7.2.310.0100.01516.73
7.2.300.0080.00816.52
7.2.290.0180.00416.78
7.2.130.0040.01116.88
7.2.120.0060.00917.07
7.2.110.0130.00616.69
7.2.100.0030.01016.77
7.2.90.0050.00516.68
7.2.80.0080.00816.91
7.2.70.0090.00617.05
7.2.60.0160.00316.76
7.2.50.0030.00617.07
7.2.40.0030.01016.66
7.2.30.0100.00316.83
7.2.20.0070.00316.79
7.2.10.0070.00716.89
7.2.00.0120.00217.93
7.1.250.0100.00315.72
7.1.100.0030.00817.71
7.1.70.0110.00416.81
7.1.60.0070.01819.40
7.1.50.0040.00716.71
7.1.00.0030.06022.40
7.0.200.0000.00916.65
7.0.140.0070.06722.07
7.0.120.0000.07722.13
7.0.60.0130.07020.00
7.0.50.0070.04717.86
7.0.40.0030.04720.05
7.0.30.0300.08020.11
7.0.20.0270.05320.16
7.0.10.0000.05020.23
7.0.00.0070.08720.06
5.6.280.0030.07321.15
5.6.210.0100.07020.77
5.6.200.0100.03318.25
5.6.190.0000.05320.48
5.6.180.0230.06020.64
5.6.170.0300.07320.57
5.6.160.0130.05320.61
5.6.150.0030.05318.23
5.6.140.0030.06718.25
5.6.130.0030.04318.26
5.6.120.0070.08721.02
5.6.110.0100.03720.90
5.6.100.0100.05721.02
5.6.90.0030.08720.94
5.6.80.0070.08320.40
5.5.350.0030.06720.43
5.5.340.0100.06717.99
5.5.330.0030.04720.40
5.5.320.1800.04020.42
5.5.310.0300.06720.26
5.5.300.0100.08017.98
5.5.290.0030.04018.07
5.5.280.0130.03020.77
5.5.270.0070.06320.84
5.5.260.0030.06320.98
5.5.250.0130.08020.67
5.5.240.0000.08020.21
5.4.450.0600.04719.51
5.4.440.0230.04719.55
5.4.430.0430.04719.36
5.4.420.0470.03719.49
5.4.410.0600.04319.23
5.4.400.0170.04019.06
5.4.390.0570.04319.07
5.4.380.0330.03719.22
5.4.370.0670.03718.86
5.4.360.0800.04319.07
5.4.350.0700.03319.22
5.4.340.0870.03019.22
5.4.320.0530.04319.00
5.4.310.0830.03719.06
5.4.300.0500.03719.04
5.4.290.0830.05019.05
5.4.280.0670.03018.96
5.4.270.0700.03019.05
5.4.260.0400.04019.04
5.4.250.0600.04019.21
5.4.240.0500.04019.26
5.4.230.0530.04019.20
5.4.220.0170.04319.03
5.4.210.0400.04319.13
5.4.200.0700.03018.94
5.4.190.0770.03719.21
5.4.180.0470.03719.03
5.4.170.0530.04319.05
5.4.160.0970.02718.84
5.4.150.0470.04019.22
5.4.140.0530.04016.55
5.4.130.0630.03016.43
5.4.120.0800.04016.40
5.4.110.0600.05716.50
5.4.100.0570.03716.48
5.4.90.0400.04016.56
5.4.80.0430.03716.59
5.4.70.1000.03716.49
5.4.60.0700.04016.41
5.4.50.0630.03016.56
5.4.40.0470.03016.55
5.4.30.0830.03716.48
5.4.20.0470.03016.33
5.4.10.0900.03316.39
5.4.00.0430.03315.73
5.3.290.0770.03715.77
5.3.280.0400.04015.77
5.3.270.0430.05015.77
5.3.260.0430.03715.77
5.3.250.0270.04015.77
5.3.240.0400.05015.77
5.3.230.0630.03715.77
5.3.220.0500.02715.77
5.3.210.0830.04315.77
5.3.200.0570.03715.77
5.3.190.0830.03015.70
5.3.180.0400.03715.70
5.3.170.0530.03715.70
5.3.160.0700.03015.70
5.3.150.0500.04315.70
5.3.140.0430.03315.70
5.3.130.0630.04315.70
5.3.120.0270.04715.70
5.3.110.1000.02315.70
5.3.100.0570.04015.70
5.3.90.0530.04315.70
5.3.80.0430.03715.70
5.3.70.0530.03315.70
5.3.60.0730.03315.70
5.3.50.0600.03715.70
5.3.40.0670.03315.70
5.3.30.0130.04015.70
5.3.20.0770.03315.70
5.3.10.0500.03315.70
5.3.00.0500.03015.70
5.2.170.0530.03015.70
5.2.160.0470.03015.70
5.2.150.0370.03315.70
5.2.140.0830.02715.70
5.2.130.0500.03015.70
5.2.120.0470.03315.70
5.2.110.0500.03015.70
5.2.100.0630.02715.70
5.2.90.0700.02015.70
5.2.80.0830.02015.70
5.2.70.0730.02715.70
5.2.60.0070.03715.70
5.2.50.0100.03315.70
5.2.40.0430.02015.70
5.2.30.0370.02715.70
5.2.20.0470.03015.70
5.2.10.0000.02315.70
5.2.00.0630.05015.70
5.1.60.0400.03015.70
5.1.50.0470.02315.70
5.1.40.0300.03315.70
5.1.30.0470.03015.70
5.1.20.0330.03315.70
5.1.10.0400.03315.70
5.1.00.0300.03315.70
5.0.50.0170.02715.70
5.0.40.0030.02015.70
5.0.30.0170.03315.70
5.0.20.0270.02015.70
5.0.10.0230.01715.70
5.0.00.0000.03315.70
4.4.90.0230.01015.70
4.4.80.0100.01715.70
4.4.70.0100.01715.70
4.4.60.0100.01315.70
4.4.50.0230.01315.70
4.4.40.0070.02315.70
4.4.30.0300.01715.70
4.4.20.0230.01315.70
4.4.10.0130.01015.70
4.4.00.0170.02315.70
4.3.110.0130.01715.70
4.3.100.0170.01715.70
4.3.90.0270.01715.70
4.3.80.0100.02715.70
4.3.70.0170.01715.70
4.3.60.0330.01715.70
4.3.50.0270.02015.70
4.3.40.0270.02315.70
4.3.30.0200.01315.70
4.3.20.0030.02015.70
4.3.10.0100.02315.70
4.3.00.0170.02315.70

preferences:
69.43 ms | 401 KiB | 5 Q