3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Weird { public static function test() { $static = !(isset($this) && get_class($this) == __CLASS__); echo ($static ? "static" : "instance") . "\n"; } } Weird::test(); $w = new Weird; $w->test(); // no the same

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.0120.00316.63
8.3.50.0120.00821.92
8.3.40.0100.01018.41
8.3.30.0030.01218.48
8.3.20.0070.00020.16
8.3.10.0050.00323.64
8.3.00.0080.00019.38
8.2.180.0150.00016.38
8.2.170.0070.01422.96
8.2.160.0090.00921.87
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00317.50
8.2.120.0080.00026.35
8.2.110.0040.00822.05
8.2.100.0110.00017.93
8.2.90.0000.00818.98
8.2.80.0060.00317.97
8.2.70.0080.00017.25
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0030.00619.38
8.2.30.0000.00820.50
8.2.20.0040.00717.63
8.2.10.0040.00418.04
8.2.00.0000.00817.95
8.1.280.0100.00725.92
8.1.270.0040.00823.86
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00022.62
8.1.230.0120.00017.64
8.1.220.0000.00917.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0080.00018.61
8.1.160.0030.00321.93
8.1.150.0000.00718.88
8.1.140.0080.00019.57
8.1.130.0050.00217.60
8.1.120.0040.00417.39
8.1.110.0040.00417.33
8.1.100.0040.00417.38
8.1.90.0000.00717.42
8.1.80.0000.00717.38
8.1.70.0000.00717.43
8.1.60.0040.00417.50
8.1.50.0000.00917.46
8.1.40.0000.00817.47
8.1.30.0030.00617.67
8.1.20.0040.00417.50
8.1.10.0000.00817.59
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.49
8.0.270.0000.00717.25
8.0.260.0060.00018.48
8.0.250.0030.00316.92
8.0.240.0040.00416.97
8.0.230.0070.00316.83
8.0.220.0070.00016.81
8.0.210.0070.00016.77
8.0.200.0030.00316.85
8.0.190.0080.00016.89
8.0.180.0000.00816.93
8.0.170.0040.00416.91
8.0.160.0050.00316.90
8.0.150.0080.00016.85
8.0.140.0000.00716.72
8.0.130.0060.00013.27
8.0.120.0000.00816.81
8.0.110.0090.00016.82
8.0.100.0030.00516.71
8.0.90.0040.00316.87
8.0.80.0080.00816.87
8.0.70.0080.00016.89
8.0.60.0000.00816.89
8.0.50.0040.00416.87
8.0.30.0100.00917.13
8.0.20.0070.01217.40
8.0.10.0070.00016.99
8.0.00.0100.00716.83
7.4.330.0050.00016.76
7.4.320.0000.00616.45
7.4.300.0030.00316.49
7.4.290.0000.00816.48
7.4.280.0000.00816.56
7.4.270.0030.00316.59
7.4.260.0070.00016.47
7.4.250.0040.00416.49
7.4.240.0030.00316.48
7.4.230.0030.00316.33
7.4.220.0140.00316.62
7.4.210.0100.01016.69
7.4.200.0030.00316.54
7.4.160.0050.01016.57
7.4.150.0170.00017.40
7.4.140.0160.00517.86
7.4.130.0080.01116.56
7.4.120.0070.01016.41
7.4.110.0110.00816.63
7.4.100.0060.01516.47
7.4.90.0060.01616.61
7.4.80.0100.00719.39
7.4.70.0070.01316.57
7.4.60.0060.00916.54
7.4.50.0000.01516.56
7.4.40.0030.01916.30
7.4.30.0030.01216.30
7.4.00.0100.00715.00
7.3.330.0030.00313.16
7.3.320.0000.00613.30
7.3.310.0080.00016.40
7.3.300.0030.00316.31
7.3.290.0090.00716.27
7.3.280.0060.01316.29
7.3.270.0160.00317.40
7.3.260.0130.00316.43
7.3.250.0080.01116.37
7.3.240.0120.00516.50
7.3.230.0090.00916.54
7.3.210.0080.00816.38
7.3.200.0050.01016.55
7.3.190.0090.01016.42
7.3.180.0100.00616.22
7.3.170.0070.01016.27
7.3.160.0130.00616.52
7.3.10.0090.00616.16
7.3.00.0100.00716.15
7.2.330.0110.00716.73
7.2.320.0180.00016.68
7.2.310.0160.00816.53
7.2.300.0110.00816.68
7.2.290.0060.01016.46
7.2.130.0000.01516.50
7.2.120.0080.01316.31
7.2.110.0120.00616.39
7.2.100.0040.01116.27
7.2.90.0040.01516.42
7.2.80.0090.00616.72
7.2.70.0200.01016.63
7.2.60.0040.01116.92
7.2.50.0220.00616.45
7.2.40.0080.01216.66
7.2.30.0130.01016.72
7.2.20.0080.01216.71
7.2.10.0040.00716.47
7.2.00.0070.00618.15
7.1.250.0000.01615.52
7.1.200.0040.00815.68
7.1.100.0120.00018.24
7.1.70.0060.01217.22
7.1.60.0070.01619.48
7.1.50.0200.00034.75
7.1.00.0030.07322.33
7.0.200.0000.00816.70
7.0.60.0030.08020.01
7.0.50.0070.04017.86
7.0.40.0130.08020.15
7.0.30.0400.07320.07
7.0.20.0170.04020.31
7.0.10.0070.04720.19
7.0.00.0130.08320.16
5.6.280.0000.06320.89
5.6.210.0100.07720.66
5.6.200.0070.08018.34
5.6.190.0030.06020.61
5.6.180.0200.07020.50
5.6.170.0230.07320.71
5.6.160.0000.04720.57
5.6.150.0000.04718.15
5.6.140.0000.04318.18
5.6.130.0030.06018.19
5.6.120.0200.06321.15
5.6.110.0100.08721.00
5.6.100.0130.04020.89
5.6.90.0100.04321.11
5.6.80.0130.07320.50
5.5.350.3130.03720.42
5.5.340.0130.07318.07
5.5.330.0030.04720.41
5.5.320.0030.03720.30
5.5.310.0230.04720.24
5.5.300.0030.04717.95
5.5.290.0070.05017.92
5.5.280.0070.06720.87
5.5.270.0070.05020.67
5.5.260.0100.03720.97
5.5.250.0030.05020.71
5.5.240.0370.07020.12

preferences:
36.28 ms | 401 KiB | 5 Q