3v4l.org

run code in 300+ PHP versions simultaneously
<?php class mYclass { public static $name = "Chandra"; public function my_fn() { echo self::$name; } } $class = new mYclass(); $class->my_fn();

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.0130.00718.31
8.3.50.0110.00621.02
8.3.40.0120.00618.59
8.3.30.0090.00918.88
8.3.20.0080.00020.20
8.3.10.0040.00421.92
8.3.00.0040.00422.57
8.2.180.0030.01316.63
8.2.170.0000.01422.96
8.2.160.0070.00720.24
8.2.150.0040.00424.18
8.2.140.0120.00324.66
8.2.130.0090.00626.16
8.2.120.0080.00019.66
8.2.110.0060.00322.08
8.2.100.0080.00419.45
8.2.90.0040.00419.16
8.2.80.0000.00719.08
8.2.70.0050.00317.50
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0080.00018.22
8.2.30.0040.00417.93
8.2.20.0030.00517.68
8.2.10.0000.00717.61
8.2.00.0000.00717.64
8.1.280.0100.00725.92
8.1.270.0040.00420.41
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0070.00423.82
8.1.230.0000.01219.12
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.52
8.1.180.0000.00720.07
8.1.170.0090.00018.52
8.1.160.0070.00022.04
8.1.150.0040.00418.52
8.1.140.0030.00517.44
8.1.130.0070.00017.82
8.1.120.0070.00017.29
8.1.110.0030.00517.38
8.1.100.0040.00417.27
8.1.90.0000.00717.29
8.1.80.0040.00417.42
8.1.70.0030.00317.36
8.1.60.0040.00417.46
8.1.50.0000.00717.47
8.1.40.0000.00717.49
8.1.30.0020.00517.51
8.1.20.0050.00317.55
8.1.10.0040.00417.59
8.1.00.0000.00817.50
8.0.300.0040.00418.77
8.0.290.0050.00217.18
8.0.280.0000.00618.43
8.0.270.0040.00417.11
8.0.260.0030.00316.72
8.0.250.0060.00016.96
8.0.240.0030.00616.84
8.0.230.0040.00416.85
8.0.220.0070.00016.82
8.0.210.0070.00016.84
8.0.200.0030.00316.78
8.0.190.0030.00316.84
8.0.180.0000.00716.80
8.0.170.0040.00416.81
8.0.160.0030.00316.94
8.0.150.0070.00016.76
8.0.140.0030.00716.73
8.0.130.0030.00313.20
8.0.120.0000.00716.78
8.0.110.0040.00416.84
8.0.100.0050.00216.76
8.0.90.0030.00316.84
8.0.80.0000.01816.74
8.0.70.0030.00416.84
8.0.60.0000.00716.93
8.0.50.0000.00716.81
8.0.30.0120.00616.91
8.0.20.0110.00817.40
8.0.10.0050.00316.93
8.0.00.0110.01016.82
7.4.330.0000.00615.00
7.4.320.0030.00316.54
7.4.300.0000.00616.58
7.4.290.0000.00716.54
7.4.280.0060.00316.39
7.4.270.0060.00016.50
7.4.260.0000.00716.46
7.4.250.0030.00516.52
7.4.240.0020.00516.52
7.4.230.0030.00316.48
7.4.220.0150.01116.52
7.4.210.0080.00716.63
7.4.200.0050.00216.67
7.4.190.0030.00316.69
7.4.160.0100.00616.36
7.4.150.0100.01317.40
7.4.140.0110.01217.86
7.4.130.0090.00916.53
7.4.120.0100.00716.43
7.4.110.0090.00916.55
7.4.100.0120.00616.45
7.4.90.0090.01216.41
7.4.80.0110.00719.39
7.4.70.0060.01216.68
7.4.60.0170.00016.57
7.4.50.0060.00316.40
7.4.40.0060.00922.77
7.4.30.0130.00716.43
7.4.00.0070.00814.75
7.3.330.0050.00013.38
7.3.320.0000.00613.25
7.3.310.0030.00316.35
7.3.300.0050.00316.16
7.3.290.0060.00916.25
7.3.280.0030.00816.28
7.3.270.0090.00917.40
7.3.260.0040.01316.38
7.3.250.0100.00716.25
7.3.240.0100.01016.27
7.3.230.0100.00716.50
7.3.210.0130.00316.27
7.3.200.0050.01119.39
7.3.190.0090.00916.49
7.3.180.0120.00616.32
7.3.170.0040.01516.27
7.3.160.0000.01516.27
7.3.120.0080.00814.75
7.3.110.0030.01414.66
7.3.100.0030.00914.77
7.3.90.0000.01315.05
7.3.80.0060.00914.69
7.3.70.0000.01314.86
7.3.60.0030.01214.55
7.3.50.0080.00914.48
7.3.40.0030.00914.47
7.3.30.0030.01314.57
7.3.20.0030.00916.56
7.3.10.0030.01016.41
7.3.00.0100.00616.36
7.2.330.0090.00916.81
7.2.320.0110.00716.80
7.2.310.0120.00916.71
7.2.300.0030.01316.86
7.2.290.0120.00416.43
7.2.250.0030.01615.16
7.2.240.0060.00614.75
7.2.230.0060.00914.95
7.2.220.0060.00315.25
7.2.210.0070.00715.25
7.2.200.0040.00715.23
7.2.190.0120.00615.04
7.2.180.0050.00514.79
7.2.170.0080.00815.02
7.2.00.0030.01219.32
7.1.330.0070.00715.71
7.1.320.0040.00815.68
7.1.310.0140.00015.82
7.1.300.0100.00315.70
7.1.290.0000.01315.79
7.1.280.0030.01115.52
7.1.270.0060.00315.69
7.1.260.0070.00315.74
7.1.100.0030.01017.97
7.1.70.0040.00416.88
7.1.60.0060.01619.50
7.1.50.0040.00716.81
7.1.00.0000.07022.29
7.0.200.0000.00916.76
7.0.140.0030.07022.04
7.0.60.0030.04319.91
7.0.50.0100.07317.94
7.0.40.0030.04320.11
7.0.30.0330.07720.09
7.0.20.0330.06020.08
7.0.10.0030.04320.15
7.0.00.0070.06720.06
5.6.280.0070.06720.91
5.6.210.0130.06320.50
5.6.200.0070.07318.16
5.6.190.0030.09020.62
5.6.180.0330.08320.67
5.6.170.0230.04020.44
5.6.160.0100.08320.46
5.6.150.0100.05018.18
5.6.140.0170.06318.11
5.6.130.0100.06018.15
5.6.120.0130.05321.12
5.6.110.0170.08020.89
5.6.100.0000.04320.98
5.6.90.0100.08320.97
5.6.80.0130.08020.52
5.5.350.0130.07020.40
5.5.340.0000.05718.01
5.5.330.0030.08720.38
5.5.320.0270.04720.43
5.5.310.0370.07720.26
5.5.300.0130.07317.97
5.5.290.0100.07717.94
5.5.280.0100.08320.98
5.5.270.0100.04020.68
5.5.260.0030.04320.83
5.5.250.0070.06720.55
5.5.240.0130.03720.14
5.4.450.0170.05319.55
5.4.440.0870.06019.18
5.4.430.0330.07019.16
5.4.420.0570.05719.18
5.4.410.0770.07719.45
5.4.400.0870.06718.96
5.4.390.0970.06319.16
5.4.380.0200.05718.63
5.4.370.0130.05018.73
5.4.360.0030.04718.67
5.4.350.0070.03812.02
5.4.340.0090.03712.02
5.4.320.0060.03912.50
5.4.310.0040.04612.50
5.4.300.0040.03712.50
5.4.290.0050.04512.50
5.4.280.0100.03912.39
5.4.270.0050.03812.40
5.4.260.0050.04012.40
5.4.250.0070.05318.82
5.4.240.0030.06018.90
5.4.230.0130.05019.00
5.4.220.0130.05718.95
5.4.210.0070.05318.95
5.4.200.0070.05018.75
5.4.190.0100.06018.79
5.4.180.0100.05318.80
5.4.170.0270.03318.74
5.4.160.0100.05018.74
5.4.150.0170.05018.81
5.4.140.0070.05016.47
5.4.130.0130.07316.48
5.4.120.0100.04716.38
5.4.110.0170.06016.43
5.4.100.0130.04716.33
5.4.90.0100.07016.33
5.4.80.0130.04316.51
5.4.70.0170.05016.55
5.4.60.0100.04716.34
5.4.50.0030.07016.38
5.4.40.0230.05316.57
5.4.30.0100.04716.53
5.4.20.0130.06016.38
5.4.10.0130.06316.48
5.4.00.0100.04716.03
5.3.290.0070.04112.80
5.3.280.0130.05714.77
5.3.270.0100.05714.69
5.3.260.0100.05314.57
5.3.250.0030.06014.58
5.3.240.0130.04714.68
5.3.230.0000.06014.74
5.3.220.0130.04314.64
5.3.210.0100.06314.62
5.3.200.0170.04314.78
5.3.190.0100.06014.58
5.3.180.0070.05714.57
5.3.170.0170.06314.62
5.3.160.0070.05714.69
5.3.150.0070.05714.46
5.3.140.0100.05314.53
5.3.130.0100.05014.53
5.3.120.0100.06714.63
5.3.110.0070.07314.52
5.3.100.0000.05714.11
5.3.90.0130.05713.91
5.3.80.0130.05314.09
5.3.70.0070.05014.18
5.3.60.0100.05014.16
5.3.50.0130.05014.01
5.3.40.0070.05313.95
5.3.30.0170.04313.91
5.3.20.0070.04713.68
5.3.10.0130.05013.73
5.3.00.0170.05713.79
5.2.170.0070.05311.12
5.2.160.0070.05711.23
5.2.150.0070.04011.05
5.2.140.0070.04711.21
5.2.130.0100.05711.11
5.2.120.0030.06011.18
5.2.110.0030.06011.06
5.2.100.0100.05311.18
5.2.90.0170.03011.28
5.2.80.0100.05011.17
5.2.70.0030.05011.16
5.2.60.0030.06311.11
5.2.50.0000.06711.00
5.2.40.0070.04710.96
5.2.30.0000.04711.03
5.2.20.0200.02710.78
5.2.10.0030.04010.80
5.2.00.0000.04710.70
5.1.60.0130.03310.06
5.1.50.0070.0379.97
5.1.40.0030.0339.94
5.1.30.0070.03310.41
5.1.20.0030.04010.34
5.1.10.0070.03310.16
5.1.00.0100.03710.08
5.0.50.0030.0308.63
5.0.40.0030.0278.36
5.0.30.0070.0478.31
5.0.20.0000.0338.19
5.0.10.0000.0338.23
5.0.00.0030.0408.20
4.4.90.0100.0237.24
4.4.80.0030.0207.24
4.4.70.0030.0207.24
4.4.60.0070.0177.24
4.4.50.0070.0207.24
4.4.40.0000.0377.24
4.4.30.0000.0237.24
4.4.20.0000.0237.24
4.4.10.0000.0237.24
4.4.00.0030.0437.24
4.3.110.0070.0207.24
4.3.100.0000.0307.24
4.3.90.0000.0237.24
4.3.80.0000.0437.24
4.3.70.0000.0307.24
4.3.60.0030.0307.24
4.3.50.0070.0177.24
4.3.40.0030.0477.24
4.3.30.0070.0237.24
4.3.20.0000.0277.24
4.3.10.0000.0237.24
4.3.00.0000.0237.39

preferences:
57.42 ms | 401 KiB | 5 Q