3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static $name = 'Class a'; public static function getName1(){ return self::$name; } public static function getName2(){ return static::$name; } } class b extends a{ public static $name = 'Class b'; } echo b::getName1(); //Class a echo "\n"; echo b::getName2(); //Class b

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.00918.18
8.3.50.0070.01117.95
8.3.40.0140.00418.68
8.3.30.0070.01018.75
8.3.20.0040.00418.98
8.3.10.0000.00823.66
8.3.00.0000.00823.53
8.2.180.0060.00925.92
8.2.170.0100.01022.96
8.2.160.0110.00718.96
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00420.52
8.2.120.0090.00026.35
8.2.110.0100.00019.35
8.2.100.0060.00617.78
8.2.90.0060.00317.97
8.2.80.0080.00017.97
8.2.70.0040.00417.78
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0080.00019.42
8.2.30.0030.00719.16
8.2.20.0000.00717.93
8.2.10.0040.00418.00
8.2.00.0040.00419.29
8.1.280.0080.00625.92
8.1.270.0070.01020.34
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.13
8.1.230.0070.00420.97
8.1.220.0050.00317.78
8.1.210.0040.00418.94
8.1.200.0040.00417.23
8.1.190.0030.00617.23
8.1.180.0060.00318.10
8.1.170.0000.00818.68
8.1.160.0070.00018.78
8.1.150.0070.00018.72
8.1.140.0040.00418.95
8.1.130.0030.00319.08
8.1.120.0060.00317.38
8.1.110.0040.00417.22
8.1.100.0000.00717.39
8.1.90.0060.00317.34
8.1.80.0040.00417.34
8.1.70.0000.01117.31
8.1.60.0050.00317.57
8.1.50.0000.00717.39
8.1.40.0040.00417.48
8.1.30.0050.00317.50
8.1.20.0040.00717.61
8.1.10.0080.00017.54
8.1.00.0000.00717.40
8.0.300.0030.00619.90
8.0.290.0040.00416.88
8.0.280.0000.00718.56
8.0.270.0030.00316.82
8.0.260.0030.00317.26
8.0.250.0000.00617.02
8.0.240.0000.00717.00
8.0.230.0030.00316.86
8.0.220.0030.00316.79
8.0.210.0040.00416.82
8.0.200.0070.00016.89
8.0.190.0050.00216.93
8.0.180.0000.00716.82
8.0.170.0040.00416.84
8.0.160.0060.00316.85
8.0.150.0000.00816.68
8.0.140.0040.00416.77
8.0.130.0000.00613.15
8.0.120.0030.00516.70
8.0.110.0000.00716.59
8.0.100.0070.00016.78
8.0.90.0040.00416.80
8.0.80.0060.01116.78
8.0.70.0040.00416.83
8.0.60.0000.00716.83
8.0.50.0000.00816.71
8.0.30.0090.00816.96
8.0.20.0090.00917.40
8.0.10.0080.00016.82
8.0.00.0140.00516.65
7.4.330.0060.00015.55
7.4.320.0000.00916.52
7.4.300.0030.00316.35
7.4.290.0030.00316.32
7.4.280.0000.00816.57
7.4.270.0000.00716.46
7.4.260.0070.00016.57
7.4.250.0000.00716.51
7.4.240.0030.00316.50
7.4.230.0030.00316.19
7.4.220.0030.00516.30
7.4.210.0050.01216.42
7.4.200.0000.00716.61
7.4.160.0060.01016.42
7.4.140.0080.01117.86
7.4.130.0170.00016.34
7.4.120.0070.01216.43
7.4.110.0160.00016.59
7.4.100.0080.00816.43
7.4.90.0090.00916.61
7.4.80.0140.00719.39
7.4.70.0110.00616.41
7.4.60.0090.00916.30
7.4.50.0120.00616.49
7.4.40.0110.00716.32
7.4.00.0060.00915.10
7.3.330.0050.00013.37
7.3.320.0000.00613.33
7.3.310.0070.00016.34
7.3.300.0030.00316.16
7.3.290.0030.00316.26
7.3.280.0100.01516.29
7.3.260.0100.00816.24
7.3.240.0070.01016.37
7.3.230.0110.00616.28
7.3.210.0110.00716.42
7.3.200.0030.01316.69
7.3.190.0120.00316.44
7.3.180.0130.00316.55
7.3.170.0110.00516.30
7.3.160.0130.00316.55
7.3.120.0130.00314.96
7.3.110.0100.00715.05
7.3.100.0120.00314.73
7.3.90.0120.00614.77
7.3.80.0070.00714.89
7.3.70.0060.00614.81
7.3.60.0030.01014.70
7.3.50.0040.01214.79
7.3.40.0090.00014.79
7.3.30.0040.00814.46
7.3.20.0070.00716.76
7.3.10.0060.00616.65
7.3.00.0030.01016.46
7.2.330.0090.00916.55
7.2.320.0160.00616.64
7.2.310.0070.01416.64
7.2.300.0030.01316.44
7.2.290.0100.00716.45
7.2.250.0030.01414.55
7.2.240.0090.00915.11
7.2.230.0120.00614.66
7.2.220.0070.00314.73
7.2.210.0030.01315.13
7.2.200.0090.00615.02
7.2.190.0090.00014.86
7.2.180.0040.01015.11
7.2.170.0120.00315.01
7.2.80.0260.00614.70
7.2.70.2010.00714.66
7.2.60.1310.00714.77
7.2.50.0130.00714.74
7.2.40.1230.00314.95
7.2.30.1180.01014.97
7.2.20.1160.00014.46
7.2.10.1450.01014.87
7.2.00.1520.00614.46
7.1.330.0060.00615.76
7.1.320.0120.00015.77
7.1.310.0000.01115.45
7.1.300.0050.00315.63
7.1.290.0040.00815.48
7.1.280.0030.00915.41
7.1.270.0040.00815.60
7.1.260.0030.00915.66
7.1.200.0370.00015.25
7.1.190.1610.01013.73
7.1.180.0140.00713.41
7.1.170.1380.00313.78
7.1.160.1200.01013.73
7.1.150.1120.00313.66
7.1.140.1290.00713.54
7.1.130.1270.00613.57
7.1.120.1520.00313.71
7.1.110.1640.00713.72
7.1.100.1230.00613.54
7.1.90.2350.01013.39
7.1.80.0210.00613.38
7.1.70.0440.01213.63
7.1.60.2670.01331.33
7.1.50.0440.01131.36
7.1.40.2030.01331.72
7.1.30.3450.01031.51
7.1.20.3080.01031.23
7.1.10.3490.00313.54
7.1.00.2710.01313.57

preferences:
58.19 ms | 400 KiB | 5 Q