3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public static $static = 'Parent class'; public static function staticVariable() { echo static::$static, PHP_EOL; } } class ChildClass extends ParentClass { public static $static = 'Child class'; public static function staticVariable() { echo static::$static, PHP_EOL; } } ParentClass::staticVariable(); ChildClass::staticVariable();

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.00718.58
8.3.30.0070.00718.87
8.3.20.0080.00019.98
8.3.10.0000.00823.54
8.3.00.0040.00419.00
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0050.00320.79
8.2.110.0030.00622.19
8.2.100.0060.00617.78
8.2.90.0050.00319.08
8.2.80.0060.00317.97
8.2.70.0060.00317.75
8.2.60.0090.00617.65
8.2.50.0000.00818.07
8.2.40.0060.00320.92
8.2.30.0000.00718.11
8.2.20.0000.00817.67
8.2.10.0050.00217.87
8.2.00.0000.00817.64
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.96
8.1.230.0080.00319.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00817.22
8.1.190.0040.00417.10
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0030.00421.99
8.1.150.0040.00418.46
8.1.140.0040.00417.38
8.1.130.0030.00317.71
8.1.120.0030.00317.39
8.1.110.0040.00417.30
8.1.100.0030.00417.35
8.1.90.0070.00017.23
8.1.80.0040.00417.29
8.1.70.0070.00017.25
8.1.60.0070.00417.51
8.1.50.0040.00417.46
8.1.40.0030.00717.34
8.1.30.0000.00817.64
8.1.20.0050.00317.46
8.1.10.0000.00817.39
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.35
8.0.270.0030.00517.25
8.0.260.0030.00317.25
8.0.250.0000.00716.81
8.0.240.0030.00316.96
8.0.230.0040.00416.77
8.0.220.0030.00316.73
8.0.210.0070.00016.81
8.0.200.0000.00616.85
8.0.190.0080.00016.90
8.0.180.0070.00016.83
8.0.170.0000.00816.83
8.0.160.0050.00316.77
8.0.150.0040.00416.78
8.0.140.0000.00716.61
8.0.130.0030.00313.15
8.0.120.0030.00516.68
8.0.110.0040.00416.70
8.0.100.0050.00316.70
8.0.90.0040.00416.76
8.0.80.0080.00816.69
8.0.70.0000.00816.72
8.0.60.0040.00416.75
8.0.50.0020.00516.65
8.0.30.0100.01217.05
8.0.20.0100.00817.40
8.0.10.0050.00216.90
8.0.00.0060.01116.67
7.4.330.0000.00615.00
7.4.320.0030.00316.37
7.4.300.0030.00316.54
7.4.290.0030.00316.53
7.4.280.0070.00016.43
7.4.270.0000.00716.52
7.4.260.0000.00716.50
7.4.250.0070.00016.53
7.4.240.0030.00316.43
7.4.230.0000.00616.32
7.4.220.0070.01116.52
7.4.210.0090.00816.57
7.4.200.0000.00816.63
7.4.190.0030.00316.56
7.4.160.0130.00616.34
7.4.150.0090.00917.40
7.4.140.0110.00917.86
7.4.130.0070.01016.38
7.4.120.0090.00816.50
7.4.110.0100.00716.56
7.4.100.0060.01816.62
7.4.90.0110.00716.52
7.4.80.0110.01119.39
7.4.70.0030.01216.37
7.4.60.0090.00916.38
7.4.50.0000.00716.55
7.4.40.0040.01216.59
7.4.30.0140.00716.29
7.4.00.0000.01514.80
7.3.330.0000.00713.09
7.3.320.0020.00213.05
7.3.310.0000.00716.28
7.3.300.0030.00316.25
7.3.290.0100.00416.21
7.3.280.0110.00516.29
7.3.270.0120.00617.40
7.3.260.0160.01016.41
7.3.250.0160.00516.25
7.3.240.0090.01516.24
7.3.230.0080.00816.40
7.3.210.0100.00716.54
7.3.200.0070.01019.39
7.3.190.0130.00316.42
7.3.180.0060.01016.38
7.3.170.0050.01116.33
7.3.160.0090.00916.26
7.3.120.0080.00814.82
7.3.110.0030.01014.79
7.3.100.0040.01114.76
7.3.90.0030.01314.60
7.3.80.0060.01014.72
7.3.70.0100.00614.79
7.3.60.0030.00814.81
7.3.50.0090.00614.99
7.3.40.0030.00714.61
7.3.30.0000.01414.75
7.3.20.0060.00616.48
7.3.10.0040.01416.69
7.3.00.0070.00716.70
7.2.330.0120.00616.41
7.2.320.0130.00916.54
7.2.310.0030.01416.73
7.2.300.0060.01516.59
7.2.290.0130.00916.49
7.2.240.0070.01015.21
7.2.230.0060.00915.01
7.2.220.0030.01015.09
7.2.210.0040.01515.07
7.2.200.0090.00315.17
7.2.190.0040.01115.04
7.2.180.0060.00914.88
7.2.170.0040.01215.02
7.2.160.0060.01015.05
7.2.150.0060.00916.90
7.2.140.0100.00616.85
7.2.130.0060.00916.78
7.2.120.0000.01516.78
7.2.110.0060.00916.60
7.2.100.0080.00816.57
7.2.90.0040.01116.90
7.2.80.0070.01016.67
7.2.70.0040.01116.56
7.2.60.0070.01016.91
7.2.50.0080.00816.98
7.2.40.0090.00316.91
7.2.30.0120.00317.04
7.2.20.0070.01016.66
7.2.10.0100.00716.91
7.2.00.0110.00418.11
7.1.330.0100.00715.60
7.1.320.0090.00615.54
7.1.310.0030.01015.61
7.1.300.0110.00415.30
7.1.290.0100.00315.60
7.1.280.0040.01115.72
7.1.270.0000.01515.61
7.1.260.0110.00315.52
7.1.250.0120.00315.42
7.1.200.0000.01215.43
7.1.100.0000.01118.23
7.1.70.0100.00016.73
7.1.60.0030.00716.86
7.1.50.0040.01816.68
7.1.00.0000.08022.35
7.0.200.0080.00816.76
7.0.140.0070.07022.04
7.0.60.0100.06320.05
7.0.50.0200.07017.72
7.0.40.0030.04320.40
7.0.30.0070.05020.09
7.0.20.0270.08020.15
7.0.10.0070.04320.22
7.0.00.0030.04320.09
5.6.280.0030.07320.87
5.6.210.0100.05020.52
5.6.200.0000.08318.28
5.6.190.0070.08320.67
5.6.180.0070.08320.62
5.6.170.0300.07020.45
5.6.160.0130.08020.44
5.6.150.0100.08018.26
5.6.140.0070.04718.16
5.6.130.0100.03318.21
5.6.120.0070.08321.14
5.6.110.0100.04020.98
5.6.100.0030.05021.13
5.6.90.0070.08021.13
5.6.80.0000.04020.34
5.5.350.0030.08020.40
5.5.340.0030.04718.09
5.5.330.0200.05020.14
5.5.320.0200.05320.34
5.5.310.0230.03720.34
5.5.300.0030.04017.95
5.5.290.0130.06717.99
5.5.280.0130.08020.80
5.5.270.0030.06320.88
5.5.260.0100.05720.97
5.5.250.0230.05320.69
5.5.240.0100.07320.24
5.4.450.0200.04019.17
5.4.440.0300.03019.54
5.4.430.0300.07019.47
5.4.420.0270.04319.46
5.4.410.0270.06019.28
5.4.400.0200.07719.15
5.4.390.0270.04719.09
5.4.380.0200.06019.12
5.4.370.0270.05319.14
5.4.360.0200.04319.25
5.4.350.0230.05018.98
5.4.340.0270.07019.11
5.4.320.0170.04019.22
5.4.310.0270.04319.06
5.4.300.0330.06019.30
5.4.290.0270.05719.14
5.4.280.0230.06719.21
5.4.270.0230.04719.08
5.4.260.0230.06318.99
5.4.250.0230.07718.94
5.4.240.0300.04319.30
5.4.230.0230.05719.19
5.4.220.0230.05019.16
5.4.210.0330.06319.07
5.4.200.0300.03018.94
5.4.190.0230.05019.04
5.4.180.0330.04719.07
5.4.170.0270.04019.11
5.4.160.0300.06318.97
5.4.150.0330.05319.05
5.4.140.0300.03716.47
5.4.130.0330.05716.55
5.4.120.0330.04016.53
5.4.110.0300.06716.41
5.4.100.0300.03316.61
5.4.90.0300.04016.64
5.4.80.0300.06716.39
5.4.70.0270.06716.49
5.4.60.0370.06316.52
5.4.50.0370.06016.48
5.4.40.0370.06016.42
5.4.30.0270.04016.32
5.4.20.0330.05316.55
5.4.10.0230.03716.52
5.4.00.0430.04716.28
5.3.290.0370.06716.28
5.3.280.0300.07016.28
5.3.270.0270.05316.28
5.3.260.0330.07016.28
5.3.250.0270.06716.28
5.3.240.0330.05716.28
5.3.230.0470.05016.28
5.3.220.0300.06716.28
5.3.210.0230.05716.28
5.3.200.0270.06316.28
5.3.190.0230.05316.28
5.3.180.0300.04016.28
5.3.170.0270.04716.28
5.3.160.0430.06016.28
5.3.150.0270.06716.28
5.3.140.0300.05316.28
5.3.130.0200.04016.28
5.3.120.0230.05716.28
5.3.110.0270.04016.28
5.3.100.0230.04316.28
5.3.90.0200.03716.28
5.3.80.0230.03716.28
5.3.70.0330.06716.28
5.3.60.0370.06016.28
5.3.50.0230.06316.28
5.3.40.0300.04016.28
5.3.30.0230.07716.28
5.3.20.0300.06716.28
5.3.10.0370.05716.28
5.3.00.0270.06016.28
5.2.170.0230.05016.28
5.2.160.0230.05316.28
5.2.150.0200.03016.28
5.2.140.0270.05716.28
5.2.130.0230.02716.28
5.2.120.0200.02716.28
5.2.110.0130.03716.28
5.2.100.0270.03016.28
5.2.90.0230.03716.28
5.2.80.0200.04716.28
5.2.70.0200.05716.28
5.2.60.0270.05316.28
5.2.50.0230.04016.28
5.2.40.0300.05016.28
5.2.30.0200.05716.28
5.2.20.0230.05016.28
5.2.10.0230.05016.28
5.2.00.0230.05316.28
5.1.60.0300.04316.28
5.1.50.0230.02716.28
5.1.40.0230.04716.28
5.1.30.0200.03016.28
5.1.20.0170.04016.28
5.1.10.0170.05716.28
5.1.00.0170.04016.28
5.0.50.0100.04016.28
5.0.40.0130.03716.28
5.0.30.0130.06716.28
5.0.20.0100.03316.28
5.0.10.0170.03716.28
5.0.00.0070.04016.28
4.4.90.0070.03316.28
4.4.80.0070.03316.28
4.4.70.0070.03316.28
4.4.60.0130.02716.28
4.4.50.0030.02016.28
4.4.40.0170.04316.28
4.4.30.0100.01316.28
4.4.20.0070.03316.28
4.4.10.0100.03316.28
4.4.00.0100.04716.28
4.3.110.0170.03016.28
4.3.100.0070.01716.28
4.3.90.0070.01716.28
4.3.80.0070.04716.28
4.3.70.0100.03716.28
4.3.60.0130.02716.28
4.3.50.0100.03316.28
4.3.40.0130.04316.28
4.3.30.0030.03716.28
4.3.20.0100.02316.28
4.3.10.0030.03016.28
4.3.00.0130.02716.28

preferences:
51.22 ms | 400 KiB | 5 Q