3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Weird { 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.0000.01516.88
8.3.50.0060.00918.27
8.3.40.0140.00018.82
8.3.30.0040.01118.46
8.3.20.0030.00620.04
8.3.10.0040.00423.53
8.3.00.0040.00419.38
8.2.180.0070.00716.50
8.2.170.0070.01122.96
8.2.160.0000.01422.26
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0060.00319.23
8.2.120.0070.00026.35
8.2.110.0070.00320.88
8.2.100.0040.00817.69
8.2.90.0000.00819.13
8.2.80.0030.00517.97
8.2.70.0030.00517.63
8.2.60.0030.00517.80
8.2.50.0030.00618.07
8.2.40.0040.00719.37
8.2.30.0000.00720.60
8.2.20.0030.00617.59
8.2.10.0040.00418.05
8.2.00.0000.00818.04
8.1.280.0070.01025.92
8.1.270.0060.00323.87
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00321.39
8.1.230.0090.00317.42
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0080.00018.10
8.1.170.0030.00618.59
8.1.160.0030.00521.88
8.1.150.0000.00718.75
8.1.140.0000.00819.48
8.1.130.0000.00717.44
8.1.120.0070.00017.32
8.1.110.0030.00317.34
8.1.100.0070.00017.22
8.1.90.0000.00717.33
8.1.80.0030.00317.29
8.1.70.0000.00717.30
8.1.60.0060.00317.51
8.1.50.0000.00817.48
8.1.40.0060.00317.34
8.1.30.0030.00517.59
8.1.20.0030.00517.50
8.1.10.0030.00517.55
8.1.00.0000.00817.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.33
8.0.270.0030.00317.09
8.0.260.0000.00617.10
8.0.250.0030.00516.84
8.0.240.0030.00317.01
8.0.230.0000.00816.83
8.0.220.0000.00716.85
8.0.210.0030.00316.92
8.0.200.0060.00017.00
8.0.190.0070.00016.93
8.0.180.0000.00716.93
8.0.170.0030.00616.84
8.0.160.0000.00716.92
8.0.150.0040.00416.72
8.0.140.0000.00716.82
8.0.130.0000.00613.35
8.0.120.0060.00316.82
8.0.110.0040.00416.85
8.0.100.0040.00416.86
8.0.90.0000.00716.91
8.0.80.0070.00716.86
8.0.70.0040.00416.93
8.0.60.0080.00016.91
8.0.50.0000.00816.70
8.0.30.0090.01017.19
8.0.20.0110.00717.40
8.0.10.0040.00416.80
8.0.00.0080.00816.90
7.4.330.0020.00216.79
7.4.320.0070.00016.37
7.4.300.0030.00316.44
7.4.290.0030.00316.54
7.4.280.0070.00016.53
7.4.270.0000.00716.45
7.4.260.0000.00716.41
7.4.250.0060.00316.45
7.4.240.0020.00516.49
7.4.230.0040.00416.35
7.4.220.0060.01916.32
7.4.210.0070.00716.41
7.4.200.0030.00316.55
7.4.160.0060.00916.41
7.4.150.0080.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00616.48
7.4.120.0090.01016.44
7.4.110.0090.00916.57
7.4.100.0110.01216.54
7.4.90.0060.01116.53
7.4.80.0120.00619.39
7.4.70.0090.00916.44
7.4.60.0000.01616.55
7.4.50.0040.01516.27
7.4.40.0110.01116.66
7.4.30.0150.00016.59
7.4.10.0040.01514.88
7.4.00.0070.01114.79
7.3.330.0040.00213.38
7.3.320.0000.00513.38
7.3.310.0040.00416.35
7.3.300.0070.00016.29
7.3.290.0070.00816.34
7.3.280.0080.00816.42
7.3.270.0100.00717.40
7.3.260.0120.00616.28
7.3.240.0130.00616.24
7.3.230.0130.01116.57
7.3.210.0130.00316.28
7.3.200.0070.01016.44
7.3.190.0100.00716.30
7.3.180.0000.01616.31
7.3.170.0060.01216.39
7.3.160.0110.00516.28
7.3.130.0110.00714.83
7.3.120.0100.01014.80
7.3.110.0030.01614.65
7.3.100.0060.00614.88
7.3.90.0040.01214.63
7.3.80.0030.00514.72
7.3.70.0040.00414.86
7.3.60.0040.01114.55
7.3.50.0030.01014.72
7.3.40.0040.00414.69
7.3.30.0000.01314.84
7.3.20.0030.00916.75
7.3.10.0030.00616.76
7.3.00.0080.00516.67
7.2.330.0150.00316.46
7.2.320.0070.01016.27
7.2.310.0100.00716.59
7.2.300.0160.00416.54
7.2.290.0190.00016.37
7.2.260.0070.01015.11
7.2.250.0130.00714.80
7.2.240.0030.01015.04
7.2.230.0070.01014.72
7.2.220.0070.01015.03
7.2.210.0030.01214.93
7.2.200.0070.00714.84
7.2.190.0070.01114.95
7.2.180.0000.01215.04
7.2.170.0000.01714.87
7.2.160.0070.00714.92
7.2.150.0120.00616.63
7.2.140.0080.00516.75
7.2.130.0100.00316.80
7.2.120.0050.00716.71
7.2.110.0100.00316.73
7.2.100.0090.00516.68
7.2.90.0050.00916.84
7.2.80.0070.00716.90
7.2.70.0070.00716.66
7.2.60.0070.00816.78
7.2.50.0090.00416.84
7.2.40.0080.00516.83
7.2.30.0060.00316.67
7.2.20.0030.00816.67
7.2.10.0090.00716.86
7.2.00.0050.00817.63
7.1.330.0060.00915.73
7.1.320.0100.00715.57
7.1.310.0030.01315.79
7.1.300.0030.01015.63
7.1.290.0000.00915.58
7.1.280.0040.00815.61
7.1.270.0060.00615.73
7.1.260.0000.00815.78
7.1.250.0030.00715.68
7.1.240.0000.01015.48
7.1.230.0030.00515.77
7.1.220.0030.00715.74
7.1.210.0110.00015.80
7.1.200.0070.00615.72
7.1.190.0040.00815.80
7.1.180.0030.00715.44
7.1.170.0030.01015.63
7.1.160.0100.00315.71
7.1.150.0120.00015.41
7.1.140.0000.00915.77
7.1.130.0050.00515.69
7.1.120.0040.00815.58
7.1.110.0130.00015.40
7.1.100.0020.00616.85
7.1.90.0040.00415.84
7.1.80.0120.00015.43
7.1.70.0060.00516.27
7.1.60.0060.01217.67
7.1.50.0050.01216.30
7.1.40.0040.01215.82
7.1.30.0000.00815.63
7.1.20.0000.01015.43
7.1.10.0090.00615.71
7.1.00.0070.03719.20
7.0.330.0030.00515.13
7.0.320.0030.01015.16
7.0.310.0090.00015.16
7.0.300.0070.01015.00
7.0.290.0030.01015.09
7.0.280.0030.01015.55
7.0.270.0000.01115.43
7.0.260.0060.00615.32
7.0.250.0060.00615.34
7.0.240.0060.01015.50
7.0.230.0060.00615.16
7.0.220.0030.01015.48
7.0.210.0030.01315.39
7.0.200.0040.00716.07
7.0.190.0070.00415.57
7.0.180.0030.00915.52
7.0.170.0000.00815.55
7.0.160.0040.00815.34
7.0.150.0040.01115.46
7.0.140.0060.00615.39
7.0.130.0130.00315.48
7.0.120.0100.00715.25
7.0.110.0040.00715.31
7.0.100.0070.00715.25
7.0.90.0060.00815.46
7.0.80.0070.01015.58
7.0.70.0030.01015.29
7.0.60.0100.03617.68
7.0.50.0080.04116.72
7.0.40.0020.04716.78
7.0.30.0170.02516.86
7.0.20.0080.02916.88
7.0.10.0030.03516.89
7.0.00.0030.03716.83
5.6.400.0100.00314.11
5.6.390.0070.00414.59
5.6.380.0070.00713.90
5.6.370.0050.00314.44
5.6.360.0030.01014.23
5.6.350.0030.00614.54
5.6.340.0040.01214.43
5.6.330.0060.01014.54
5.6.320.0060.00914.22
5.6.310.0000.01114.46
5.6.300.0090.00314.33
5.6.290.0000.00814.43
5.6.280.0090.03517.76
5.6.270.0120.00314.25
5.6.260.0070.00714.20
5.6.250.0120.00414.46
5.6.240.0030.01014.27
5.6.230.0070.00314.32
5.6.220.0100.00314.19
5.6.210.0050.04817.37
5.6.200.0070.04416.32
5.6.190.0050.04617.42
5.6.180.0200.03817.54
5.6.170.0130.02317.35
5.6.160.0030.02817.38
5.6.150.0090.01916.27
5.6.140.0040.02616.26
5.6.130.0020.02616.29
5.6.120.0070.03017.60
5.6.110.0070.04417.67
5.6.100.0020.04217.56
5.6.90.0100.04317.54
5.6.80.0070.04117.30
5.6.70.0070.00314.52
5.6.60.0030.00614.20
5.6.50.0120.00414.25
5.6.40.0090.00014.30
5.6.30.0070.00714.12
5.6.20.0070.00714.37
5.6.10.0070.01014.25
5.6.00.0050.00514.28
5.5.380.0030.00714.39
5.5.370.0000.00914.19
5.5.360.0040.00414.01
5.5.350.1620.01717.34
5.5.340.0080.02816.19
5.5.330.0040.04717.43
5.5.320.0040.02217.41
5.5.310.0180.04517.25
5.5.300.0060.03816.17
5.5.290.0050.02616.25
5.5.280.0070.03217.68
5.5.270.0050.02817.58
5.5.260.0040.04017.55
5.5.250.0070.04317.38
5.5.240.0180.04317.17
5.5.230.0030.01014.16
5.5.220.0040.01114.08
5.5.210.0070.00714.30
5.5.200.0110.00414.29
5.5.190.0060.00614.12
5.5.180.0100.00614.39
5.5.170.0060.00914.15
5.5.160.0040.01214.42
5.5.150.0040.01414.32
5.5.140.0040.00714.24
5.5.130.0110.00013.98
5.5.120.0090.00614.19
5.5.110.0000.01514.34
5.5.100.0030.01314.04
5.5.90.0070.00413.98
5.5.80.0030.00914.29
5.5.70.0120.00014.27
5.5.60.0030.01014.33
5.5.50.0000.01713.96
5.5.40.0090.00614.23
5.5.30.0080.00814.12
5.5.20.0070.00314.24
5.5.10.0060.00614.20
5.5.00.0100.00313.94

preferences:
32.72 ms | 401 KiB | 5 Q