3v4l.org

run code in 300+ PHP versions simultaneously
<?php class par { protected static $a = "AA"; function echoA() { echo self::$a; } } class enf extends par { function echoA() { echo self::$a . ' BB'; } } $enf = new enf(); $enf->echoA();

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.0070.01418.72
8.3.30.0070.00718.79
8.3.20.0040.00420.26
8.3.10.0040.00422.21
8.3.00.0000.00822.57
8.2.170.0170.00322.96
8.2.160.0110.00720.81
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0050.00322.25
8.2.100.0060.00617.72
8.2.90.0000.00818.95
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0030.00618.05
8.2.50.0040.00418.07
8.2.40.0040.00417.99
8.2.30.0060.00318.15
8.2.20.0040.00417.55
8.2.10.0000.00717.69
8.2.00.0040.00417.71
8.1.270.0040.00423.61
8.1.260.0050.00326.35
8.1.250.0070.00728.09
8.1.240.0090.00023.84
8.1.230.0040.00719.15
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0080.00017.30
8.1.180.0060.00318.10
8.1.170.0060.00318.38
8.1.160.0000.00822.04
8.1.150.0040.00418.55
8.1.140.0040.00417.37
8.1.130.0000.00717.78
8.1.120.0000.00717.52
8.1.110.0000.00717.34
8.1.100.0000.00717.34
8.1.90.0030.00317.37
8.1.80.0030.00517.45
8.1.70.0000.00817.40
8.1.60.0000.00917.54
8.1.50.0000.00717.51
8.1.40.0070.00017.49
8.1.30.0080.00017.46
8.1.20.0050.00317.68
8.1.10.0000.00817.45
8.1.00.0030.00517.41
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0000.00718.48
8.0.270.0030.00317.11
8.0.260.0030.00316.82
8.0.250.0040.00316.97
8.0.240.0040.00416.84
8.0.230.0000.00717.00
8.0.220.0020.00516.77
8.0.210.0030.00316.85
8.0.200.0030.00316.90
8.0.190.0060.00316.95
8.0.180.0040.00416.94
8.0.170.0050.00316.94
8.0.160.0040.00316.86
8.0.150.0030.00316.82
8.0.140.0040.00416.82
8.0.130.0000.00613.36
8.0.120.0040.00416.89
8.0.110.0000.00716.90
8.0.100.0040.00416.87
8.0.90.0020.00516.76
8.0.80.0060.01016.75
8.0.70.0000.00716.91
8.0.60.0000.00716.81
8.0.50.0040.00416.84
8.0.30.0100.00817.06
8.0.20.0080.01017.40
8.0.10.0050.00316.88
8.0.00.0100.01016.96
7.4.330.0000.00515.00
7.4.320.0000.00716.55
7.4.300.0030.00316.35
7.4.290.0030.00316.39
7.4.280.0030.00316.56
7.4.270.0060.00316.61
7.4.260.0030.00616.45
7.4.250.0070.00016.47
7.4.240.0020.00516.45
7.4.230.0070.00016.48
7.4.220.0120.00416.70
7.4.210.0060.00816.49
7.4.200.0000.00716.63
7.4.190.0070.00016.70
7.4.160.0120.00416.58
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0090.01016.52
7.4.120.0070.01116.54
7.4.110.0140.00416.44
7.4.100.0120.00416.64
7.4.90.0090.00916.43
7.4.80.0090.00619.39
7.4.70.0080.00816.62
7.4.60.0050.01116.45
7.4.50.0070.00016.60
7.4.40.0000.01322.77
7.4.30.0130.00316.36
7.4.00.0040.01114.98
7.3.330.0030.00313.17
7.3.320.0060.00013.23
7.3.310.0030.00316.20
7.3.300.0000.00716.17
7.3.290.0110.00416.31
7.3.280.0110.00716.30
7.3.270.0100.01017.40
7.3.260.0100.01016.36
7.3.250.0070.01216.31
7.3.240.0070.01016.52
7.3.230.0070.01216.39
7.3.210.0140.00416.25
7.3.200.0190.00319.39
7.3.190.0110.00716.62
7.3.180.0100.01116.64
7.3.170.0060.01016.44
7.3.160.0060.01016.38
7.3.120.0110.00714.92
7.3.10.0030.00916.71
7.3.00.0000.01216.55
7.2.330.0130.01016.65
7.2.320.0070.01016.44
7.2.310.0030.01316.54
7.2.300.0100.01316.31
7.2.290.0130.00616.70
7.2.130.0000.01116.86
7.2.120.0040.00816.92
7.2.110.0060.00916.95
7.2.100.0050.00516.85
7.2.90.0080.00417.11
7.2.80.0110.00016.87
7.2.70.0060.00616.69
7.2.60.0070.00716.81
7.2.50.0070.00716.87
7.2.40.0130.00017.12
7.2.30.0100.00316.93
7.2.20.0060.00616.70
7.2.10.0040.01116.89
7.2.00.0050.00618.13
7.1.250.0060.00315.86
7.1.100.0310.00717.78
7.1.70.0040.01117.11
7.1.60.0140.00019.82
7.1.50.0090.00616.93
7.1.00.0030.07722.44
7.0.200.0090.00316.62
7.0.140.0030.07322.15
7.0.110.0170.07319.99
7.0.100.0070.05019.95
7.0.90.0070.06019.92
7.0.80.0170.05719.93
7.0.70.0130.07019.91
7.0.60.0070.07719.93
7.0.50.0030.08720.39
7.0.40.0200.07320.00
7.0.30.0070.07720.25
7.0.20.0030.08720.05
7.0.10.0100.05020.05
7.0.00.0200.07719.95
5.6.280.0030.07320.79
5.6.250.0130.07720.66
5.6.240.0300.04320.70
5.6.230.0070.08020.67
5.6.220.0030.08720.64
5.6.210.0030.05320.74
5.6.200.0030.08721.13
5.6.190.0130.07020.94
5.6.180.0030.05721.06
5.6.170.0130.07721.23
5.6.160.0070.07721.13
5.6.150.0100.07021.09
5.6.140.0100.08020.93
5.6.130.0070.07321.05
5.6.120.0170.07721.02
5.6.110.0100.08321.14
5.6.100.0130.08320.95
5.6.90.0070.08321.18
5.6.80.0170.06020.42
5.6.70.0070.07720.46
5.6.60.0030.08020.52
5.6.50.0070.06320.54
5.6.40.0170.07020.55
5.6.30.0030.08020.55
5.6.20.0100.06320.55
5.6.10.0130.03320.32
5.6.00.0130.07320.46
5.5.380.0200.07020.58
5.5.370.0030.07320.53
5.5.360.0030.07020.53
5.5.350.0070.08720.49
5.5.340.0200.06720.72
5.5.330.0130.07320.90
5.5.320.0200.06720.90
5.5.310.0170.06720.99
5.5.300.0070.08020.89
5.5.290.0030.09020.91
5.5.280.0100.07720.73
5.5.270.0130.08020.74
5.5.260.0100.04720.78
5.5.250.0130.07020.52
5.5.240.0070.08020.09
5.5.230.0100.08020.22
5.5.220.0200.06720.16
5.5.210.0070.08320.09
5.5.200.0070.07020.17
5.5.190.0130.07020.31
5.5.180.0130.06320.26
5.5.160.0070.04020.19
5.5.150.0070.07720.14
5.5.140.0070.07320.32
5.5.130.0170.03720.16
5.5.120.0100.07020.30
5.5.110.0000.08020.32
5.5.100.0030.04320.26
5.5.90.0170.05020.28
5.5.80.0030.08320.28
5.5.70.0030.08320.08
5.5.60.0130.07320.26
5.5.50.0130.07020.25
5.5.40.0170.07020.16
5.5.30.0100.08020.16
5.5.20.0200.03720.13
5.5.10.0100.07020.12
5.5.00.0000.05720.00
5.4.450.0130.07719.57
5.4.440.0100.07319.32
5.4.430.0130.04319.31
5.4.420.0130.06719.50
5.4.410.0100.07019.21
5.4.400.0000.06018.95
5.4.390.0030.04719.18
5.4.380.0070.04719.09
5.4.370.0070.08019.34
5.4.360.0130.06319.31
5.4.350.0100.07318.99
5.4.340.0000.07719.18
5.4.320.0000.08319.01
5.4.310.0030.07319.09
5.4.300.0030.07319.00
5.4.290.0100.06018.94
5.4.280.0100.07719.14
5.4.270.0000.06318.98
5.4.260.0130.04319.23
5.4.250.0070.07019.00
5.4.240.0030.05319.22
5.4.230.0100.07019.23
5.4.220.0070.07319.22
5.4.210.0070.07319.18
5.4.200.0200.06318.98
5.4.190.0100.07719.13
5.4.180.0070.06718.94
5.4.170.0000.07719.15
5.4.160.0070.04719.16
5.4.150.0070.03319.16
5.4.140.0130.06716.57
5.4.130.0030.07016.37
5.4.120.0070.07016.60
5.4.110.0130.06716.64
5.4.100.0200.05316.57
5.4.90.0100.06716.52
5.4.80.0130.06016.45
5.4.70.0070.07016.40
5.4.60.0030.08016.53
5.4.50.0030.07316.39
5.4.40.0130.06316.62
5.4.30.0100.07316.64
5.4.20.0000.07316.41
5.4.10.0070.08016.43
5.4.00.0070.04015.80
5.3.290.0030.07714.67
5.3.280.0030.08014.61
5.3.270.0070.04714.62
5.3.260.0300.03314.73
5.3.250.0070.07014.69
5.3.240.0130.06714.70
5.3.230.0030.07314.68
5.3.220.0030.07714.80
5.3.210.0100.07014.60
5.3.200.0100.06014.71
5.3.190.0070.07714.56
5.3.180.0000.07314.71
5.3.170.0130.06314.59
5.3.160.0070.07314.59
5.3.150.0070.07714.65
5.3.140.0100.07314.68
5.3.130.0070.07014.63
5.3.120.0070.03714.68
5.3.110.0070.05714.63
5.3.100.0030.08013.90
5.3.90.0100.07014.15
5.3.80.0100.07014.04
5.3.70.0130.06314.16
5.3.60.0070.07014.01
5.3.50.0130.06714.01
5.3.40.0070.06314.03
5.3.30.0070.06713.99
5.3.20.0030.05713.75
5.3.10.0170.05713.65
5.3.00.0100.07013.64
5.2.170.0100.05011.29
5.2.160.0130.05711.14
5.2.150.0170.05011.15
5.2.140.0030.05711.15
5.2.130.0000.06711.18
5.2.120.0030.06011.33
5.2.110.0070.06011.13
5.2.100.0000.04011.11
5.2.90.0030.06011.08
5.2.80.0030.05010.95
5.2.70.0100.05711.16
5.2.60.0100.04311.07
5.2.50.0070.06011.11
5.2.40.0000.04711.08
5.2.30.0070.05711.07
5.2.20.0000.06310.82
5.2.10.0070.05010.94
5.2.00.0030.06310.71
5.1.60.0030.05310.25
5.1.50.0100.04710.08
5.1.40.0070.05010.06
5.1.30.0000.04710.36
5.1.20.0070.05310.45
5.1.10.0130.04710.05
5.1.00.0100.04710.13
5.0.50.0070.0408.72
5.0.40.0070.0438.49
5.0.30.0100.0538.05
5.0.20.0000.0478.16
5.0.10.0070.0408.35
5.0.00.0070.0538.16
4.4.90.0000.0277.80
4.4.80.0030.0337.80
4.4.70.0030.0207.80
4.4.60.0000.0207.80
4.4.50.0000.0307.80
4.4.40.0070.0507.80
4.4.30.0030.0337.80
4.4.20.0100.0237.80
4.4.10.0000.0377.80
4.4.00.0000.0577.80
4.3.110.0030.0237.80
4.3.100.0000.0237.80
4.3.90.0070.0277.80
4.3.80.0070.0477.80
4.3.70.0070.0337.80
4.3.60.0030.0337.80
4.3.50.0070.0337.80
4.3.40.0000.0537.80
4.3.30.0000.0307.80
4.3.20.0000.0377.80
4.3.10.0000.0377.80
4.3.00.0000.0337.80

preferences:
51.96 ms | 400 KiB | 5 Q