3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static $_desc = "Test\n"; public function __description() { if (isset($this)) { static::desc(); } else { return static::$_desc; } } } $test = new Test(); echo $test->__description(); echo Test::__description();

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.0110.00418.56
8.3.50.0090.00921.13
8.3.40.0120.00318.93
8.3.30.0140.00318.84
8.3.20.0040.00420.07
8.3.10.0090.00023.53
8.3.00.0000.00822.34
8.2.180.0090.00618.23
8.2.170.0070.00722.96
8.2.160.0100.01020.40
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0030.00617.38
8.2.110.0130.00321.00
8.2.100.0060.00617.91
8.2.90.0000.00817.78
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0000.00817.91
8.2.50.0030.00618.07
8.2.40.0000.00821.09
8.2.30.0080.00019.80
8.2.20.0080.00017.69
8.2.10.0040.00418.00
8.2.00.0070.00018.04
8.1.280.0070.01425.92
8.1.270.0060.00320.33
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00322.08
8.1.230.0120.00020.82
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0030.00518.71
8.1.160.0030.00523.65
8.1.150.0000.00718.87
8.1.140.0080.00017.29
8.1.130.0070.00017.64
8.1.120.0030.00417.32
8.1.110.0040.00417.35
8.1.100.0000.00717.39
8.1.90.0040.00417.43
8.1.80.0020.00517.30
8.1.70.0030.00317.29
8.1.60.0040.00417.60
8.1.50.0090.00017.51
8.1.40.0080.00017.40
8.1.30.0000.00917.55
8.1.20.0000.00817.61
8.1.10.0040.00417.63
8.1.00.0050.00317.40
8.0.300.0060.00319.98
8.0.290.0040.00416.75
8.0.280.0000.00718.29
8.0.270.0040.00417.24
8.0.260.0000.00617.20
8.0.250.0030.00316.93
8.0.240.0040.00416.93
8.0.230.0030.00316.90
8.0.220.0000.00716.92
8.0.210.0040.00416.91
8.0.200.0070.00016.92
8.0.190.0040.00416.95
8.0.180.0000.00816.89
8.0.170.0000.00816.93
8.0.160.0040.00316.95
8.0.150.0000.00716.85
8.0.140.0070.00416.84
8.0.130.0060.00013.32
8.0.120.0000.00716.88
8.0.110.0000.00816.72
8.0.100.0080.00016.77
8.0.90.0070.00016.79
8.0.80.0060.01016.86
8.0.70.0040.00416.90
8.0.60.0000.00716.75
8.0.50.0000.00717.00
8.0.30.0110.00417.04
8.0.20.0060.01217.40
8.0.10.0000.00816.81
8.0.00.0120.00916.75
7.4.330.0030.00315.08
7.4.320.0060.00016.45
7.4.300.0000.00716.49
7.4.290.0000.00716.55
7.4.280.0040.00416.48
7.4.270.0000.00716.49
7.4.260.0050.00216.50
7.4.250.0030.00516.50
7.4.240.0070.00016.51
7.4.230.0040.00416.71
7.4.220.0070.01316.63
7.4.210.0030.01416.58
7.4.200.0070.00016.70
7.4.160.0060.00916.30
7.4.150.0110.00817.40
7.4.140.0030.01917.86
7.4.130.0120.00816.53
7.4.120.0080.00916.45
7.4.110.0140.01016.48
7.4.100.0070.01116.58
7.4.90.0080.01516.48
7.4.80.0070.01119.39
7.4.70.0100.00816.43
7.4.60.0120.00416.46
7.4.50.0000.00816.42
7.4.40.0100.00716.41
7.4.30.0160.00716.57
7.4.00.0090.00314.77
7.3.330.0000.00513.36
7.3.320.0030.00313.38
7.3.310.0030.00516.32
7.3.300.0030.00316.37
7.3.290.0090.00916.35
7.3.280.0120.00716.34
7.3.270.0030.01317.40
7.3.260.0030.01316.60
7.3.250.0130.00816.44
7.3.240.0000.01616.34
7.3.230.0110.00616.39
7.3.210.0120.00616.37
7.3.200.0100.01019.39
7.3.190.0040.01216.46
7.3.180.0120.00916.15
7.3.170.0060.01116.44
7.3.160.0100.01316.44
7.3.120.0030.01214.58
7.3.110.0040.01114.76
7.3.100.0090.00614.53
7.3.90.0060.00614.70
7.3.80.0040.01114.67
7.3.70.0040.00814.70
7.3.60.0090.00614.84
7.3.50.0030.01314.88
7.3.40.0080.00814.69
7.3.30.0030.01414.78
7.3.20.0100.00716.34
7.3.10.0070.00716.61
7.3.00.0030.00716.53
7.2.330.0040.01416.63
7.2.320.0140.00916.32
7.2.310.0070.01016.65
7.2.300.0090.00616.67
7.2.290.0150.00616.36
7.2.240.0000.01214.79
7.2.230.0060.00615.19
7.2.220.0090.00614.62
7.2.210.0050.00514.99
7.2.200.0000.01615.07
7.2.190.0000.01315.02
7.2.180.0100.00714.83
7.2.170.0120.00014.86
7.2.160.0040.01414.79
7.2.150.0060.01216.71
7.2.140.0070.01016.78
7.2.130.0110.00416.86
7.2.120.0070.00416.50
7.2.110.0030.01316.55
7.2.100.0040.00716.74
7.2.90.0100.00316.89
7.2.80.0100.00516.61
7.2.70.0030.00716.81
7.2.60.0080.00516.71
7.2.50.0090.00316.86
7.2.40.0040.01116.60
7.2.30.0090.00316.95
7.2.20.0100.00316.56
7.2.10.0050.00516.75
7.2.00.0160.00517.94
7.1.330.0060.00615.77
7.1.320.0040.01115.67
7.1.310.0030.01215.50
7.1.300.0000.01215.70
7.1.290.0090.00615.60
7.1.280.0030.01315.52
7.1.270.0070.00715.38
7.1.260.0070.00415.45
7.1.250.0060.00615.81
7.1.200.0040.00815.44
7.1.100.0120.00517.93
7.1.70.0030.01317.04
7.1.60.0170.00720.03
7.1.50.0170.00316.88
7.1.00.0030.07722.28
7.0.200.0170.00314.92
7.0.60.0100.08319.86
7.0.50.0100.07717.78
7.0.40.0030.04320.09
7.0.30.0230.04720.15
7.0.20.0370.07720.15
7.0.10.0170.07720.22
7.0.00.0030.04320.08
5.6.280.0000.06721.10
5.6.210.0030.04020.69
5.6.200.0070.07718.22
5.6.190.0000.05720.46
5.6.180.0270.06720.52
5.6.170.0500.06720.50
5.6.160.0100.08320.54
5.6.150.0070.08318.23
5.6.140.0070.08018.21
5.6.130.0070.08018.18
5.6.120.0070.05020.99
5.6.110.0100.07721.03
5.6.100.0070.08020.98
5.6.90.0100.08020.88
5.6.80.0000.09020.41
5.6.70.2170.03320.50
5.5.350.0230.07020.33
5.5.340.0000.04317.92
5.5.330.0000.04320.47
5.5.320.0300.05320.20
5.5.310.0400.06720.41
5.5.300.0100.04717.98
5.5.290.0070.08018.01
5.5.280.0100.08020.88
5.5.270.0100.07320.77
5.5.260.0030.07320.77
5.5.250.0030.07320.66
5.5.240.4200.04020.18
5.4.450.0730.06319.48
5.4.440.0770.05719.69
5.4.430.0930.05719.56
5.4.420.0930.04019.46
5.4.410.0670.05319.16
5.4.400.0770.05719.28
5.4.390.0870.05019.13
5.4.380.0970.07318.82
5.4.370.0930.04718.84
5.4.360.0830.05319.12
5.4.350.0800.05319.28
5.4.340.0770.05719.01
5.4.320.0670.06319.31
5.4.310.0770.06319.24
5.4.300.0730.04319.22
5.4.290.0730.04719.14
5.4.280.0730.05019.14
5.4.270.0870.05019.12
5.4.260.0730.05018.85
5.4.250.0770.05719.14
5.4.240.0800.04319.11
5.4.230.1030.06718.95
5.4.220.0830.05718.82
5.4.210.0830.05018.93
5.4.200.0600.06016.79
5.4.190.0800.05019.03
5.4.180.0870.05019.17
5.4.170.0830.04319.16
5.4.160.0670.05319.14
5.4.150.0730.05018.81
5.4.140.0700.05316.29
5.4.130.1000.03716.39
5.4.120.0800.05316.55
5.4.110.0770.05716.38
5.4.100.0830.05316.46
5.4.90.0730.05716.77
5.4.80.0870.04716.50
5.4.70.1030.04316.36
5.4.60.0000.07316.52
5.4.50.0030.03316.43
5.4.40.0170.04316.51
5.4.30.0370.06716.25
5.4.20.0300.06716.42

preferences:
59.41 ms | 401 KiB | 5 Q