3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function f1(){ self::$f2 = static::f2(); } protected static function f2() { var_dump(static::class); // returns B on the local machine and on the remote server $f3 = function () { var_dump(static::class); // returns B on the local machine and returns A on the remote server $data = static::f4(); }; } } class B extends A{} self::$B = B::instance();

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.0060.00916.75
8.3.50.0150.00016.27
8.3.40.0160.00318.75
8.3.30.0110.00418.75
8.3.20.0070.00020.25
8.3.10.0040.00423.36
8.3.00.0050.00323.66
8.2.180.0070.01418.29
8.2.170.0120.00922.96
8.2.160.0140.00020.34
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0080.00019.57
8.2.120.0080.00026.35
8.2.110.0060.00322.25
8.2.100.0120.00017.55
8.2.90.0000.00819.08
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0000.00822.28
8.2.30.0000.00719.34
8.2.20.0080.00017.73
8.2.10.0040.00417.98
8.2.00.0040.00417.91
8.1.280.0030.01725.92
8.1.270.0120.00820.07
8.1.260.0030.00528.09
8.1.250.0070.00028.09
8.1.240.0120.00620.75
8.1.230.0080.00420.73
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0000.00918.51
8.1.160.0050.00320.63
8.1.150.0040.00418.66
8.1.140.0040.00419.39
8.1.130.0070.00017.44
8.1.120.0000.00717.27
8.1.110.0040.00417.32
8.1.100.0000.00817.15
8.1.90.0040.00417.30
8.1.80.0000.00817.32
8.1.70.0000.00817.31
8.1.60.0020.00517.48
8.1.50.0030.00617.50
8.1.40.0000.00817.40
8.1.30.0000.00817.61
8.1.20.0000.00817.59
8.1.10.0030.00517.48
8.1.00.0000.00717.37
8.0.300.0000.00718.77
8.0.290.0040.00416.72
8.0.280.0030.00318.25
8.0.270.0030.00317.19
8.0.260.0000.00717.17
8.0.250.0060.00016.97
8.0.240.0000.00816.84
8.0.230.0040.00416.84
8.0.220.0070.00016.79
8.0.210.0070.00016.77
8.0.200.0000.00716.90
8.0.190.0050.00316.99
8.0.180.0030.00316.93
8.0.170.0080.00016.82
8.0.160.0040.00416.86
8.0.150.0000.00716.86
8.0.140.0040.00416.77
8.0.130.0030.00313.34
8.0.120.0040.00416.84
8.0.110.0000.00816.77
8.0.100.0000.00816.70
8.0.90.0000.00716.91
8.0.80.0110.00416.91
8.0.70.0070.00016.73
8.0.60.0000.00816.86
8.0.50.0000.00816.77
8.0.30.0120.00717.06
8.0.20.0130.00817.40
8.0.10.0040.00416.94
8.0.00.0060.01216.74
7.4.330.0060.00016.66
7.4.320.0030.00316.46
7.4.300.0040.00416.32
7.4.290.0000.00716.50
7.4.280.0030.00516.46
7.4.270.0000.00716.50
7.4.260.0000.00616.50
7.4.250.0040.00416.54
7.4.240.0050.00216.38
7.4.230.0070.00016.63
7.4.220.0030.01516.37
7.4.210.0000.02016.51
7.4.200.0000.00716.63
7.4.160.0060.01016.46
7.4.150.0100.00717.40
7.4.140.0100.00917.86
7.4.130.0100.01216.56
7.4.120.0110.00716.45
7.4.110.0070.01116.76
7.4.100.0120.00816.36
7.4.90.0060.01316.63
7.4.80.0060.01619.39
7.4.70.0070.01716.38
7.4.60.0100.00616.54
7.4.50.0060.00616.34
7.4.40.0110.00616.43
7.4.30.0070.01016.21
7.4.00.0040.01314.75
7.3.330.0030.00313.30
7.3.320.0000.00613.13
7.3.310.0000.00716.27
7.3.300.0030.00316.25
7.3.290.0050.01416.27
7.3.280.0110.01016.34
7.3.270.0060.01317.40
7.3.260.0070.01016.53
7.3.250.0120.00716.35
7.3.240.0070.01016.29
7.3.230.0070.01016.39
7.3.210.0150.00016.37
7.3.200.0100.00719.39
7.3.190.0070.01116.30
7.3.180.0090.00916.38
7.3.170.0100.00716.29
7.3.160.0030.01416.49
7.3.120.0050.01314.73
7.3.110.0050.01014.66
7.3.100.0090.00314.68
7.3.90.0090.00514.71
7.3.80.0080.00614.65
7.3.70.0080.00514.75
7.3.60.0080.00714.69
7.3.50.0060.00814.63
7.3.40.0030.00914.73
7.3.30.0110.00214.77
7.3.20.0080.00716.66
7.3.10.0070.00416.57
7.3.00.0030.00916.52
7.2.330.0080.01116.60
7.2.320.0120.00916.41
7.2.310.0030.01516.50
7.2.300.0060.01416.14
7.2.290.0120.00616.41
7.2.250.0090.01214.69
7.2.240.0080.00914.96
7.2.230.0020.01114.59
7.2.220.0050.00914.80
7.2.210.0110.00814.81
7.2.200.0080.00514.90
7.2.190.0070.00814.81
7.2.180.0070.00514.84
7.2.170.0050.00914.66
7.2.160.0060.00314.93
7.2.150.0060.00816.66
7.2.140.0070.00716.57
7.2.130.0110.00016.87
7.2.120.0050.00516.84
7.2.110.0120.00316.84
7.2.100.0000.01016.80
7.2.90.0090.00616.70
7.2.80.0100.00316.73
7.2.70.0060.00616.89
7.2.60.0020.01216.66
7.2.50.0090.00316.54
7.2.40.0030.01016.77
7.2.30.0090.00316.62
7.2.20.0040.01116.84
7.2.10.0030.01316.86
7.2.00.0050.00717.79
7.1.330.0030.01215.54
7.1.320.0050.01215.75
7.1.310.0070.00515.69
7.1.300.0020.01015.53
7.1.290.0060.00515.52
7.1.280.0050.00715.46
7.1.270.0040.00615.72
7.1.260.0020.00915.62
7.1.250.0090.00915.53
7.1.200.0030.01015.70
7.1.100.0070.00718.19
7.1.70.0000.01417.09
7.1.60.0000.01219.27
7.1.50.0000.01016.54
7.1.00.0000.08022.31
7.0.200.0000.00916.81
7.0.60.0100.06021.72
7.0.50.0030.08317.73
7.0.40.0000.05020.04
7.0.30.0230.07320.06
7.0.20.0330.07020.12
7.0.10.0030.04720.10
7.0.00.0030.08320.20
5.6.280.0000.05021.16
5.6.210.0030.04320.52
5.6.200.0130.07718.13
5.6.190.0000.04720.64
5.6.180.0470.07320.45
5.6.170.0230.05020.47
5.6.160.0070.07720.48
5.6.150.0100.08018.25
5.6.140.0030.04718.18
5.6.130.0030.05718.14
5.6.120.0170.04721.13
5.6.110.0070.04320.99
5.6.100.0030.04721.04
5.6.90.0170.06721.14
5.6.80.0070.04020.39
5.5.350.0000.06320.42
5.5.340.0070.07318.04
5.5.330.0030.07020.40
5.5.320.0330.04720.36
5.5.310.0070.05020.36
5.5.300.0100.08318.08
5.5.290.0070.04018.08
5.5.280.0130.07720.66
5.5.270.0100.08320.90
5.5.260.0170.02720.68
5.5.250.0130.07020.60
5.5.240.0200.06020.36

preferences:
44.28 ms | 401 KiB | 5 Q