3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); class A { static $i=1; static function F() { echo self::$i; } } class B extends A { static $i=2; static function F() { echo self::$i; } } echo B::$i;

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.40.0110.00418.70
8.3.30.0070.00718.84
8.3.20.0030.00520.15
8.3.10.0080.00023.49
8.3.00.0060.00318.94
8.2.170.0040.01122.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.01126.16
8.2.120.0040.00419.36
8.2.110.0070.00322.29
8.2.100.0040.00817.72
8.2.90.0040.00419.13
8.2.80.0050.00317.97
8.2.70.0100.00017.63
8.2.60.0040.00417.80
8.2.50.0040.00718.07
8.2.40.0080.00019.95
8.2.30.0000.00718.24
8.2.20.0080.00019.38
8.2.10.0040.00417.96
8.2.00.0040.00417.68
8.1.270.0060.00323.86
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.88
8.1.230.0060.00619.07
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0050.00317.00
8.1.180.0030.00618.10
8.1.170.0050.00318.34
8.1.160.0070.00021.95
8.1.150.0050.00218.49
8.1.140.0040.00417.28
8.1.130.0000.00717.75
8.1.120.0000.00717.31
8.1.110.0030.00517.34
8.1.100.0030.00617.34
8.1.90.0050.00217.21
8.1.80.0000.00717.24
8.1.70.0030.00317.23
8.1.60.0060.00317.31
8.1.50.0060.00317.27
8.1.40.0040.00417.26
8.1.30.0040.00417.49
8.1.20.0040.00417.41
8.1.10.0060.00317.50
8.1.00.0040.00417.25
8.0.300.0030.00318.77
8.0.290.0000.00716.63
8.0.280.0070.00018.32
8.0.270.0040.00417.16
8.0.260.0030.00318.25
8.0.250.0070.00016.89
8.0.240.0000.00616.87
8.0.230.0030.00316.80
8.0.220.0030.00316.82
8.0.210.0000.00616.72
8.0.200.0000.00716.78
8.0.190.0030.00316.82
8.0.180.0070.00016.73
8.0.170.0030.00616.79
8.0.160.0040.00416.72
8.0.150.0030.00516.68
8.0.140.0000.00916.71
8.0.130.0000.00513.18
8.0.120.0080.00016.73
8.0.110.0000.00716.73
8.0.100.0080.00016.60
8.0.90.0000.00716.77
8.0.80.0120.00916.65
8.0.70.0030.00516.79
8.0.60.0080.00016.63
8.0.50.0000.00716.73
8.0.30.0130.00616.97
8.0.20.0100.01317.40
8.0.10.0040.00416.82
8.0.00.0140.00316.89
7.4.330.0000.00615.00
7.4.320.0020.00516.45
7.4.300.0040.00416.26
7.4.290.0060.00316.37
7.4.280.0040.00416.26
7.4.270.0080.00016.40
7.4.260.0080.00316.44
7.4.250.0080.00016.32
7.4.240.0050.00216.37
7.4.230.0040.00416.55
7.4.220.0180.00616.23
7.4.210.0040.01516.41
7.4.200.0070.00016.25
7.4.160.0060.00916.40
7.4.150.0070.01017.40
7.4.140.0090.00817.86
7.4.130.0090.00716.39
7.4.120.0120.00516.58
7.4.110.0130.00316.43
7.4.100.0180.00016.32
7.4.90.0100.00716.51
7.4.80.0060.00919.39
7.4.70.0110.00716.49
7.4.60.0060.01316.39
7.4.50.0000.00816.39
7.4.40.0060.00916.37
7.4.30.0100.00616.27
7.4.00.0100.00414.74
7.3.330.0020.00213.28
7.3.320.0000.00513.00
7.3.310.0000.00716.23
7.3.300.0030.00316.19
7.3.290.0030.01216.23
7.3.280.0100.00816.24
7.3.270.0040.01617.40
7.3.260.0150.00316.44
7.3.250.0090.01216.28
7.3.240.0040.01916.19
7.3.230.0060.00916.39
7.3.210.0100.00516.19
7.3.200.0090.00619.39
7.3.190.0100.00716.31
7.3.180.0110.00716.23
7.3.170.0130.00316.44
7.3.160.0120.00616.48
7.3.120.0070.01214.61
7.3.110.0050.01114.97
7.3.100.0070.00514.64
7.3.90.0080.00714.55
7.3.80.0070.00914.76
7.3.70.0060.00814.65
7.3.60.0060.00714.57
7.3.50.0060.00614.51
7.3.40.0050.00714.53
7.3.30.0050.00814.80
7.3.20.0100.00516.72
7.3.10.0090.00616.60
7.3.00.0100.00516.61
7.2.330.0150.00316.43
7.2.320.0060.01016.56
7.2.310.0040.01316.64
7.2.300.0120.00916.53
7.2.290.0030.01416.45
7.2.250.0160.00315.11
7.2.240.0030.01015.13
7.2.230.0060.00914.98
7.2.220.0030.01214.92
7.2.210.0070.00914.99
7.2.200.0050.00715.04
7.2.190.0080.00715.00
7.2.180.0000.01514.98
7.2.170.0090.00314.74
7.2.160.0090.00314.88
7.2.150.0070.01016.73
7.2.140.0060.00716.51
7.2.130.0060.00916.90
7.2.120.0070.00716.73
7.2.110.0040.01216.86
7.2.100.0060.00616.84
7.2.90.0100.00316.68
7.2.80.0070.01116.77
7.2.70.0150.00016.94
7.2.60.0030.00916.99
7.2.50.0030.01016.88
7.2.40.0030.01016.82
7.2.30.0000.01316.98
7.2.20.0100.00716.71
7.2.10.0110.00716.88
7.2.00.0070.00517.97
7.1.330.0070.00815.67
7.1.320.0020.01215.41
7.1.310.0050.01015.65
7.1.300.0070.00915.70
7.1.290.0030.01215.64
7.1.280.0040.01015.56
7.1.270.0070.00815.64
7.1.260.0050.00815.51
7.1.250.0030.00615.57
7.1.100.0150.00618.00
7.1.70.0030.00616.90
7.1.60.0110.01419.70
7.1.50.0100.01016.86
7.1.00.0030.07722.34
7.0.200.0080.00016.34
7.0.140.0030.07322.02
7.0.100.0070.04320.16
7.0.90.0100.08320.00
7.0.80.0070.05019.92
7.0.70.0400.07319.91
7.0.60.0370.07020.02
7.0.50.0400.08720.25
7.0.40.0100.07720.09
7.0.30.0100.08720.04
7.0.20.0200.07020.14
7.0.10.0070.07320.18
7.0.00.0070.07720.10
5.6.280.0030.07321.12
5.6.250.0170.07320.83
5.6.240.0100.08020.66
5.6.230.0200.07720.70
5.6.220.0070.08020.68
5.6.210.0170.03720.68
5.6.200.0000.05321.01
5.6.190.0130.07721.12
5.6.180.0030.06021.07
5.6.170.0030.05321.05
5.6.160.0100.06021.09
5.6.150.0030.08321.00
5.6.140.0100.05021.04
5.6.130.0070.05021.02
5.6.120.0100.08321.09
5.6.110.0130.07720.99
5.6.100.0030.05321.16
5.6.90.0070.05021.07
5.6.80.0100.03320.43
5.6.70.0100.04320.48
5.6.60.0100.03320.30
5.6.50.0000.04720.41
5.6.40.0070.03720.43
5.6.30.0030.03320.50
5.6.20.0100.03020.32
5.6.10.0030.04020.43
5.6.00.0000.04320.39
5.5.380.0100.07320.58
5.5.370.0070.08020.37
5.5.360.0030.07320.35
5.5.350.0070.05320.38
5.5.340.0170.06320.65
5.5.330.0130.08020.74
5.5.320.0070.08320.91
5.5.310.0200.07320.93
5.5.300.0170.07720.85
5.5.290.0030.08720.74
5.5.280.0100.05020.90
5.5.270.0070.08020.91
5.5.260.0070.04020.81
5.5.250.0100.03720.58
5.5.240.0100.04020.23
5.5.230.0000.04320.25
5.5.220.0030.04020.14
5.5.210.0170.02320.26
5.5.200.0030.04020.15
5.5.190.0070.04720.15
5.5.180.0070.03720.23
5.5.160.0070.04020.29
5.5.150.0070.03720.24
5.5.140.0100.03720.24
5.5.130.0000.05320.27
5.5.120.0030.04020.24
5.5.110.0100.03720.25
5.5.100.0070.04320.09
5.5.90.0070.03319.98
5.5.80.0070.03720.14
5.5.70.0070.04020.16
5.5.60.0030.04020.06
5.5.50.0030.04020.12
5.5.40.0070.04020.07
5.5.30.0130.02719.96
5.5.20.0030.04020.00
5.5.10.0000.06020.05
5.5.00.0100.03320.03
5.4.450.0070.05319.36
5.4.440.0130.07019.20
5.4.430.0130.06019.35
5.4.420.0000.06719.55
5.4.410.0030.04019.36
5.4.400.0070.07318.85
5.4.390.0100.03319.13
5.4.380.0070.03719.19
5.4.370.0070.04019.03
5.4.360.0000.04019.18
5.4.350.0070.03319.01
5.4.340.0030.04018.95
5.4.320.0030.04718.95
5.4.310.0070.03319.04
5.4.300.0030.04019.14
5.4.290.0070.06318.90
5.4.280.0030.04719.18
5.4.270.0000.04319.04
5.4.260.0030.03719.03
5.4.250.0030.03719.09
5.4.240.0000.04019.03
5.4.230.0030.03019.05
5.4.220.0070.03719.13
5.4.210.0000.04018.84
5.4.200.0070.03719.04
5.4.190.0030.03019.08
5.4.180.0030.04019.20
5.4.170.0030.03719.20
5.4.160.0000.04019.02
5.4.150.0030.03719.16
5.4.140.0030.03716.31
5.4.130.0030.03316.42
5.4.120.0070.03316.45
5.4.110.0100.02316.54
5.4.100.0000.04016.42
5.4.90.0030.05016.49
5.4.80.0070.07016.43
5.4.70.0100.02716.44
5.4.60.0100.07316.42
5.4.50.0070.05016.41
5.4.40.0030.07316.54
5.4.30.0000.07716.48
5.4.20.0000.07716.48
5.4.10.0070.07016.36
5.4.00.0000.06015.63
5.3.290.0030.03714.64
5.3.280.0000.04014.55
5.3.270.0030.06314.63
5.3.260.0000.04014.61
5.3.250.0000.04714.71
5.3.240.0070.03014.73
5.3.230.0070.03314.59
5.3.220.0000.03314.63
5.3.210.0030.03714.55
5.3.200.0000.04314.59
5.3.190.0000.04014.51
5.3.180.0100.06314.52
5.3.170.0100.05314.57
5.3.160.0070.07714.69
5.3.150.0030.08014.54
5.3.140.0030.07714.67
5.3.130.0100.07714.59
5.3.120.0070.07314.54
5.3.110.0170.06014.69
5.3.100.0000.07714.04
5.3.90.0100.07714.16
5.3.80.0070.08014.09
5.3.70.0070.07314.09
5.3.60.0070.04314.00
5.3.50.0130.04714.09
5.3.40.0100.07313.93
5.3.30.0100.06713.95
5.3.20.0130.05013.67
5.3.10.0070.04013.69
5.3.00.0070.07313.75
5.2.170.0000.06711.04
5.2.160.0070.03711.17
5.2.150.0030.03311.01
5.2.140.0000.05311.27
5.2.130.0030.06011.24
5.2.120.0000.06711.20
5.2.110.0070.04711.12
5.2.100.0000.06011.20
5.2.90.0100.05011.00
5.2.80.0000.04311.15
5.2.70.0000.06011.13
5.2.60.0030.06011.04
5.2.50.0130.04311.14
5.2.40.0030.03711.12
5.2.30.0070.05011.11
5.2.20.0100.05311.05
5.2.10.0000.05010.99
5.2.00.0030.04710.74
5.1.60.0070.05010.12
5.1.50.0000.04710.12
5.1.40.0030.02710.08
5.1.30.0030.03010.44
5.1.20.0030.03710.42
5.1.10.0100.03710.19
5.1.00.0070.03010.08
5.0.50.0030.0379.33
5.0.40.0030.0409.33
5.0.30.0030.0539.33
5.0.20.0030.0409.33
5.0.10.0070.0339.33
5.0.00.0030.0579.33
4.4.90.0000.0309.33
4.4.80.0000.0409.33
4.4.70.0000.0239.33
4.4.60.0030.0139.33
4.4.50.0000.0239.33
4.4.40.0000.0379.33
4.4.30.0030.0209.33
4.4.20.0100.0279.33
4.4.10.0000.0339.33
4.4.00.0000.0509.33
4.3.110.0030.0309.33
4.3.100.0000.0239.33
4.3.90.0100.0279.33
4.3.80.0000.0379.33
4.3.70.0100.0109.33
4.3.60.0000.0379.33
4.3.50.0000.0339.33
4.3.40.0030.0279.33
4.3.30.0030.0379.33
4.3.20.0030.0179.33
4.3.10.0000.0309.33
4.3.00.0030.0339.33

preferences:
85.54 ms | 400 KiB | 5 Q