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.0040.01116.63
8.3.50.0100.01022.05
8.3.40.0110.00418.88
8.3.30.0100.00618.79
8.3.20.0040.00420.34
8.3.10.0050.00323.57
8.3.00.0060.00319.26
8.2.180.0090.00616.46
8.2.170.0090.00622.96
8.2.160.0080.00622.24
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00319.23
8.2.120.0060.00326.35
8.2.110.0060.00320.52
8.2.100.0070.00418.09
8.2.90.0050.00319.05
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0030.00617.80
8.2.50.0030.00618.07
8.2.40.0000.01019.38
8.2.30.0040.00420.61
8.2.20.0000.00817.75
8.2.10.0000.00717.92
8.2.00.0030.00717.90
8.1.280.0170.00025.92
8.1.270.0030.00723.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00323.88
8.1.230.0100.00019.16
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0000.00818.40
8.1.160.0000.00821.96
8.1.150.0030.00518.81
8.1.140.0090.00019.39
8.1.130.0070.00017.48
8.1.120.0000.00817.37
8.1.110.0000.00717.30
8.1.100.0050.00217.37
8.1.90.0040.00417.17
8.1.80.0000.00817.33
8.1.70.0030.00317.15
8.1.60.0040.00417.48
8.1.50.0030.00517.47
8.1.40.0030.00617.35
8.1.30.0060.00317.55
8.1.20.0040.00417.51
8.1.10.0000.00817.55
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0020.00516.63
8.0.280.0070.00018.39
8.0.270.0000.00717.25
8.0.260.0000.00617.15
8.0.250.0000.00716.94
8.0.240.0070.00017.00
8.0.230.0030.00716.94
8.0.220.0070.00016.80
8.0.210.0030.00316.90
8.0.200.0000.00616.96
8.0.190.0000.00716.93
8.0.180.0040.00416.81
8.0.170.0000.00816.84
8.0.160.0040.00416.89
8.0.150.0000.00716.93
8.0.140.0000.00716.82
8.0.130.0030.00313.33
8.0.120.0080.00016.86
8.0.110.0030.00516.78
8.0.100.0000.00716.92
8.0.90.0040.00416.88
8.0.80.0130.00316.90
8.0.70.0040.00416.90
8.0.60.0040.00416.89
8.0.50.0000.00716.69
8.0.30.0130.00316.98
8.0.20.0140.00717.40
8.0.10.0030.00716.93
8.0.00.0090.00916.77
7.4.330.0020.00216.75
7.4.320.0030.00316.52
7.4.300.0030.00316.48
7.4.290.0000.00716.43
7.4.280.0060.00316.45
7.4.270.0080.00016.45
7.4.260.0000.00716.43
7.4.250.0030.00616.55
7.4.240.0040.00316.39
7.4.230.0030.00316.24
7.4.220.0090.00916.43
7.4.210.0070.01016.65
7.4.200.0040.00416.28
7.4.160.0110.00316.50
7.4.150.0140.01217.40
7.4.140.0160.01017.86
7.4.130.0180.00616.39
7.4.120.0140.00516.45
7.4.110.0100.00716.68
7.4.100.0070.01716.46
7.4.90.0080.00916.63
7.4.80.0130.00319.39
7.4.70.0150.00416.55
7.4.60.0120.00416.52
7.4.50.0080.00816.26
7.4.40.0070.01116.42
7.4.30.0100.00716.61
7.4.00.0060.01014.79
7.3.330.0000.00613.44
7.3.320.0030.00213.39
7.3.310.0030.00316.27
7.3.300.0030.00316.28
7.3.290.0080.00816.38
7.3.280.0140.00316.37
7.3.270.0060.01117.40
7.3.260.0000.01716.70
7.3.240.0070.01416.30
7.3.230.0180.00316.48
7.3.210.0030.01516.44
7.3.200.0090.00616.55
7.3.190.0150.00316.64
7.3.180.0130.00816.32
7.3.170.0220.00016.62
7.3.160.0060.00916.32
7.3.120.0060.00914.61
7.3.110.0090.00615.01
7.3.100.0030.01414.79
7.3.90.0070.01014.87
7.3.80.0030.01014.75
7.3.70.0140.00314.82
7.3.60.0090.00614.91
7.3.50.0040.01214.88
7.3.40.0000.01214.80
7.3.30.0040.00814.58
7.3.20.0100.00716.64
7.3.10.0060.00916.44
7.3.00.0060.00616.61
7.2.330.0070.01616.50
7.2.320.0030.01416.50
7.2.310.0090.00916.55
7.2.300.0100.01416.59
7.2.290.0100.00616.66
7.2.240.0060.00614.84
7.2.230.0030.00614.73
7.2.220.0000.01015.03
7.2.210.0090.00614.71
7.2.200.0070.01114.94
7.2.190.0040.01414.93
7.2.180.0000.01214.83
7.2.170.0040.00814.91
7.2.160.0090.00914.66
7.2.150.0030.01016.87
7.2.140.0070.00716.81
7.2.130.0070.01016.63
7.2.120.0030.01216.74
7.2.110.0090.00616.83
7.2.100.0030.00916.70
7.2.90.0060.00616.73
7.2.80.0090.00616.90
7.2.70.0080.00416.58
7.2.60.0060.00916.77
7.2.50.0030.01016.71
7.2.40.0070.01116.86
7.2.30.0070.00316.64
7.2.20.0000.01416.62
7.2.10.0040.00416.90
7.2.00.0070.00817.95
7.1.330.0060.00915.75
7.1.320.0070.01015.63
7.1.310.0030.00715.53
7.1.300.0060.00615.59
7.1.290.0000.01515.72
7.1.280.0090.00615.71
7.1.270.0000.01215.48
7.1.260.0040.00715.50
7.1.250.0030.01515.48
7.1.200.0060.00615.78
7.1.100.0050.00518.20
7.1.70.0070.00316.91
7.1.60.0120.01519.48
7.1.50.0030.01216.82
7.1.00.0000.07722.46
7.0.200.0040.00416.72
7.0.60.0070.08319.93
7.0.50.0070.08317.82
7.0.40.0000.06020.21
7.0.30.0530.06720.20
7.0.20.0170.04720.12
7.0.10.0100.08320.12
7.0.00.0070.08720.05
5.6.210.0070.08320.70
5.6.200.0100.06018.23
5.6.190.0030.04320.61
5.6.180.0300.07720.55
5.6.170.0270.08020.54
5.6.160.0000.04320.50
5.6.150.0030.04018.25
5.6.140.0070.03318.14
5.6.130.0030.07018.19
5.6.120.0070.04721.12
5.6.110.0070.07021.09
5.6.100.0130.06021.00
5.6.90.0100.05020.96
5.6.80.0130.08020.36
5.5.350.3500.04720.44
5.5.340.0070.06718.02
5.5.330.0130.08720.21
5.5.320.0000.04320.27
5.5.310.0170.04020.50
5.5.300.0070.03717.98
5.5.290.0070.08018.05
5.5.280.0170.07320.88
5.5.270.0130.06320.87
5.5.260.0070.05320.73
5.5.250.0030.04320.55
5.5.240.0230.04320.12

preferences:
65.35 ms | 401 KiB | 5 Q