3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Weird { private $a = 1; public static function test() { $static = !get_class($this); echo ($static ? "static" : "instance") . "\n"; } } Weird::test(); $w = new Weird; $w->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.63
8.3.50.0140.00522.11
8.3.40.0110.00318.91
8.3.30.0030.01218.84
8.3.20.0050.00320.20
8.3.10.0060.00323.66
8.3.00.0080.00019.38
8.2.180.0150.00016.75
8.2.170.0120.00322.96
8.2.160.0100.00322.12
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00919.03
8.2.120.0000.00726.35
8.2.110.0000.01022.27
8.2.100.0070.00317.80
8.2.90.0000.00819.11
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0000.00917.91
8.2.50.0050.00318.07
8.2.40.0000.00719.45
8.2.30.0000.00720.62
8.2.20.0030.00717.63
8.2.10.0000.00717.89
8.2.00.0030.00517.98
8.1.280.0140.00725.92
8.1.270.0030.00623.82
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0110.01122.30
8.1.230.0070.00417.66
8.1.220.0030.00517.74
8.1.210.0000.01018.77
8.1.200.0040.00417.22
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0060.00318.71
8.1.160.0040.00421.94
8.1.150.0070.00018.66
8.1.140.0050.00319.39
8.1.130.0000.00717.48
8.1.120.0000.00717.36
8.1.110.0070.00017.29
8.1.100.0040.00417.23
8.1.90.0000.00717.32
8.1.80.0000.00817.27
8.1.70.0080.00017.29
8.1.60.0030.00617.40
8.1.50.0080.00017.30
8.1.40.0000.00817.32
8.1.30.0040.00417.63
8.1.20.0030.00617.34
8.1.10.0000.00717.51
8.1.00.0040.00417.45
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.25
8.0.270.0000.00817.18
8.0.260.0030.00317.10
8.0.250.0000.00716.95
8.0.240.0070.00016.81
8.0.230.0040.00616.91
8.0.220.0000.00616.86
8.0.210.0030.00316.93
8.0.200.0060.00016.93
8.0.190.0040.00416.87
8.0.180.0000.00816.96
8.0.170.0060.00316.92
8.0.160.0030.00316.92
8.0.150.0070.00016.74
8.0.140.0030.00316.89
8.0.130.0050.00013.27
8.0.120.0000.00816.86
8.0.110.0050.00316.77
8.0.100.0040.00416.86
8.0.90.0040.00416.86
8.0.80.0060.00916.80
8.0.70.0040.00416.95
8.0.60.0080.00016.87
8.0.50.0000.00716.83
8.0.30.0090.00916.94
8.0.20.0100.01017.40
8.0.10.0040.00416.78
8.0.00.0110.00616.78
7.4.330.0000.00516.75
7.4.320.0000.00616.30
7.4.300.0000.00716.57
7.4.290.0070.00016.58
7.4.280.0000.00816.53
7.4.270.0030.00316.50
7.4.260.0030.00316.31
7.4.250.0040.00416.40
7.4.240.0010.00616.45
7.4.230.0000.00716.35
7.4.220.0060.01216.56
7.4.210.0120.00316.35
7.4.200.0070.00016.33
7.4.160.0120.00316.42
7.4.150.0070.01017.40
7.4.140.0140.00517.86
7.4.130.0130.00716.48
7.4.120.0090.00716.48
7.4.110.0030.01616.47
7.4.100.0140.00716.60
7.4.90.0030.01416.44
7.4.80.0090.01519.39
7.4.70.0150.00316.48
7.4.60.0120.00316.56
7.4.50.0040.01116.59
7.4.40.0030.01316.39
7.4.30.0130.00316.46
7.4.00.0040.01115.03
7.3.330.0040.00413.34
7.3.320.0000.00613.33
7.3.310.0000.00716.38
7.3.300.0000.00716.30
7.3.290.0060.01216.36
7.3.280.0090.01016.33
7.3.270.0120.00617.40
7.3.260.0110.00616.35
7.3.250.0090.01016.27
7.3.240.0100.01016.45
7.3.230.0090.00616.39
7.3.210.0120.00416.50
7.3.200.0160.00016.37
7.3.190.0170.00016.34
7.3.180.0060.00916.43
7.3.170.0210.00016.40
7.3.160.0120.00416.43
7.3.120.0070.00714.72
7.3.110.0040.01414.71
7.3.100.0000.01814.64
7.3.90.0070.00714.48
7.3.80.0000.01114.69
7.3.70.0030.01314.53
7.3.60.0100.00314.69
7.3.50.0040.01114.51
7.3.40.0070.00714.59
7.3.30.0070.00714.92
7.3.20.0070.00716.59
7.3.10.0000.01116.43
7.3.00.0070.00716.54
7.2.330.0060.01216.21
7.2.320.0060.01016.64
7.2.310.0040.01416.57
7.2.300.0050.01116.28
7.2.290.0140.00316.63
7.2.250.0060.01214.68
7.2.240.0070.01315.14
7.2.230.0090.00615.04
7.2.220.0080.00314.79
7.2.210.0040.00815.03
7.2.200.0070.00714.77
7.2.190.0030.00714.55
7.2.180.0100.00314.78
7.2.170.0060.00614.55
7.2.60.0040.00816.86
7.2.00.0030.01019.09
7.1.330.0000.01515.49
7.1.320.0000.01415.35
7.1.310.0030.00915.39
7.1.300.0030.01015.73
7.1.290.0000.00915.63
7.1.280.0000.01115.70
7.1.270.0040.01115.52
7.1.260.0070.01015.72
7.1.200.0040.00415.84
7.1.100.0060.00317.86
7.1.70.0060.00617.00
7.1.60.0090.01519.48
7.1.50.0090.01216.52
7.1.00.0030.07722.48
7.0.200.0030.00716.80
7.0.60.0130.07319.93
7.0.50.0030.05317.85
7.0.40.0100.07720.05
7.0.30.0270.06320.06
7.0.20.0200.05020.12
7.0.10.0100.08720.19
7.0.00.0070.07020.41
5.6.280.0070.03721.08
5.6.210.0030.04320.51
5.6.200.0100.08718.13
5.6.190.0030.08320.57
5.6.180.0270.07320.61
5.6.170.0200.04020.55
5.6.160.0030.04020.57
5.6.150.0070.07318.27
5.6.140.0030.04018.18
5.6.130.0100.07718.21
5.6.120.0100.07020.97
5.6.110.0070.08321.14
5.6.100.0030.06720.99
5.6.90.0130.08320.96
5.6.80.0000.07720.39
5.5.350.3870.04720.35
5.5.340.0070.03717.90
5.5.330.0100.08320.48
5.5.320.0000.04020.32
5.5.310.0170.04320.25
5.5.300.0100.05717.95
5.5.290.0000.04718.08
5.5.280.0100.08320.77
5.5.270.0030.09320.88
5.5.260.0070.06720.76
5.5.250.0030.05320.66
5.5.240.0370.06720.15

preferences:
49.03 ms | 401 KiB | 5 Q