3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function printSelf() { echo 'self = ' . self::class . "\n"; } public static function printStatic() { echo 'static = ' . static::class . "\n"; } } class B extends A { } A::test(); B::test();

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.0070.00716.38
8.3.50.0130.00621.87
8.3.40.0150.00018.76
8.3.30.0040.01418.45
8.3.20.0000.00820.13
8.3.10.0040.00423.55
8.3.00.0040.00419.38
8.2.180.0170.00318.29
8.2.170.0100.00722.96
8.2.160.0100.00320.40
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00317.63
8.2.120.0070.00026.35
8.2.110.0090.00021.11
8.2.100.0070.00417.84
8.2.90.0000.00917.63
8.2.80.0030.00517.97
8.2.70.0050.00317.79
8.2.60.0040.00418.09
8.2.50.0030.00618.10
8.2.40.0050.00219.35
8.2.30.0030.00320.52
8.2.20.0040.00417.76
8.2.10.0040.00417.92
8.2.00.0040.00417.98
8.1.280.0040.01425.92
8.1.270.0080.00023.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00022.14
8.1.230.0040.00719.15
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0060.00318.58
8.1.160.0000.00721.84
8.1.150.0000.00718.73
8.1.140.0040.00419.48
8.1.130.0000.00717.47
8.1.120.0030.00417.33
8.1.110.0070.00017.34
8.1.100.0000.00817.39
8.1.90.0000.00717.34
8.1.80.0040.00417.35
8.1.70.0050.00317.19
8.1.60.0070.00317.48
8.1.50.0000.00817.34
8.1.40.0040.00417.37
8.1.30.0050.00317.43
8.1.20.0000.00817.56
8.1.10.0080.00017.40
8.1.00.0000.00717.39
8.0.300.0000.00819.68
8.0.290.0000.00916.75
8.0.280.0000.00718.37
8.0.270.0030.00317.06
8.0.260.0030.00317.09
8.0.250.0030.00316.88
8.0.240.0040.00416.92
8.0.230.0070.00016.88
8.0.220.0050.00316.93
8.0.210.0030.00316.78
8.0.200.0060.00016.95
8.0.190.0000.00816.91
8.0.180.0000.00716.95
8.0.170.0000.00816.96
8.0.160.0000.00716.98
8.0.150.0060.00316.84
8.0.140.0030.00316.79
8.0.130.0060.00013.32
8.0.120.0000.00816.84
8.0.110.0070.00016.92
8.0.100.0030.00416.75
8.0.90.0040.00416.86
8.0.80.0090.00916.89
8.0.70.0070.00016.77
8.0.60.0070.00016.91
8.0.50.0020.00516.80
8.0.30.0080.00817.06
8.0.20.0110.01417.40
8.0.10.0040.00416.98
8.0.00.0100.00716.55
7.4.330.0060.00016.82
7.4.320.0000.00616.38
7.4.300.0060.00016.44
7.4.290.0000.00616.50
7.4.280.0080.00016.47
7.4.270.0030.00316.52
7.4.260.0050.00216.40
7.4.250.0000.00716.42
7.4.240.0030.00516.43
7.4.230.0000.00716.43
7.4.220.0110.00616.64
7.4.210.0070.00716.54
7.4.200.0040.00416.53
7.4.160.0120.00316.58
7.4.150.0170.00717.40
7.4.140.0080.01517.86
7.4.130.0130.00816.37
7.4.120.0070.01216.43
7.4.110.0140.00416.42
7.4.100.0100.00716.39
7.4.90.0170.00316.59
7.4.80.0100.00719.39
7.4.70.0070.01516.42
7.4.60.0070.01016.65
7.4.50.0080.00516.30
7.4.40.0090.00916.54
7.4.30.0130.00316.51
7.4.00.0070.01014.66
7.3.330.0040.00413.22
7.3.320.0050.00013.11
7.3.310.0030.00316.32
7.3.300.0030.00516.34
7.3.290.0050.01116.22
7.3.280.0080.00816.30
7.3.270.0070.01117.40
7.3.260.0030.01416.46
7.3.250.0070.01116.27
7.3.240.0090.01016.26
7.3.230.0150.00816.39
7.3.210.0100.00716.57
7.3.200.0030.01416.29
7.3.190.0080.00816.29
7.3.180.0080.00816.27
7.3.170.0040.01216.45
7.3.160.0120.00316.25
7.3.120.0060.01014.95
7.3.110.0000.01814.65
7.3.100.0070.00715.01
7.3.90.0050.00514.74
7.3.80.0060.00914.78
7.3.70.0140.00314.86
7.3.60.0100.00314.54
7.3.50.0040.00714.63
7.3.40.0040.01114.79
7.3.30.0000.01114.81
7.3.20.0030.01216.62
7.3.10.0060.00616.57
7.3.00.0080.00816.51
7.2.330.0120.00616.48
7.2.320.0160.00616.23
7.2.310.0150.00016.52
7.2.300.0060.01016.48
7.2.290.0140.00316.38
7.2.240.0120.00815.02
7.2.230.0090.00615.04
7.2.220.0030.00914.86
7.2.210.0110.00314.90
7.2.200.0070.01114.97
7.2.190.0030.00714.99
7.2.180.0000.00914.67
7.2.170.0040.01115.03
7.2.160.0030.00614.87
7.2.150.0070.00416.79
7.2.140.0040.01116.71
7.2.130.0100.00716.79
7.2.120.0030.00616.64
7.2.110.0090.00916.88
7.2.100.0040.01116.70
7.2.90.0080.00816.78
7.2.80.0080.00316.59
7.2.70.0090.00916.73
7.2.60.0090.00716.69
7.2.50.0100.01016.68
7.2.40.0030.01316.74
7.2.30.0070.00716.73
7.2.20.0100.01016.96
7.2.10.0040.00816.83
7.2.00.0080.00517.99
7.1.330.0000.01715.84
7.1.320.0030.00915.48
7.1.310.0040.01115.48
7.1.300.0110.00315.67
7.1.290.0100.00615.56
7.1.280.0130.00315.70
7.1.270.0070.00715.74
7.1.260.0070.00715.27
7.1.250.0060.00615.79
7.1.200.0090.01215.45
7.1.100.0040.01117.95
7.1.70.0000.00716.74
7.1.60.0100.01419.48
7.1.50.0040.00816.74
7.1.00.0030.07722.28
7.0.200.0040.01116.58
7.0.60.0130.07320.05
7.0.50.0100.06017.89
7.0.40.0030.04320.11
7.0.30.0230.07020.34
7.0.20.0070.05320.08
7.0.10.0100.05320.24
7.0.00.0000.04720.32
5.6.210.0100.04720.53
5.6.200.0070.04018.22
5.6.190.0030.04020.47
5.6.180.0300.07720.42
5.6.170.0230.06720.39
5.6.160.0070.06320.48
5.6.150.0100.03318.15
5.6.140.0200.07018.16
5.6.130.0130.07718.29
5.6.120.0070.05021.02
5.6.110.0130.08020.98
5.6.100.0070.06320.95
5.6.90.0130.04321.00
5.6.80.0070.07320.34
5.5.350.4370.04020.30
5.5.340.0100.07318.01
5.5.330.0030.04020.27
5.5.320.0030.06020.30
5.5.310.0400.07020.34
5.5.300.0070.04717.98
5.5.290.0070.03718.01
5.5.280.0100.07720.88
5.5.270.0070.08320.87
5.5.260.0100.08320.87
5.5.250.0070.06720.71
5.5.240.0400.06320.16

preferences:
44.91 ms | 401 KiB | 5 Q