3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface I{ public static function init(?string $url): self; } class C implements I{ public static function init(?string $url): self{ return new self(); } } $o = C::init("foo"); var_dump($o);

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.00416.63
8.3.50.0110.00418.19
8.3.40.0120.00318.70
8.3.30.0080.00618.47
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0080.01027.12
8.2.180.0120.00325.92
8.2.170.0070.00718.94
8.2.160.0060.00922.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0150.00227.12
8.2.120.0120.00523.90
8.2.110.0150.00525.10
8.2.100.0100.00922.96
8.2.90.0060.00623.71
8.2.80.0100.00423.15
8.2.70.0090.00323.01
8.2.60.0050.00521.13
8.2.50.0080.00521.19
8.2.40.0070.00619.64
8.2.30.0100.00419.66
8.2.20.0090.00419.85
8.2.10.0060.00819.35
8.2.00.0070.00619.57
8.1.280.0100.00725.92
8.1.270.0000.00724.66
8.1.260.0110.00127.22
8.1.250.0050.00428.09
8.1.240.0060.00324.53
8.1.230.0060.00524.56
8.1.220.0040.00622.91
8.1.210.0040.00723.50
8.1.200.0070.00622.72
8.1.190.0090.00420.81
8.1.180.0050.00921.05
8.1.170.0070.00720.18
8.1.160.0110.00319.87
8.1.150.0080.00719.41
8.1.140.0100.00519.23
8.1.130.0090.00719.24
8.1.120.0080.00619.27
8.1.110.0070.00618.46
8.1.100.0110.00418.49
8.1.90.0090.00518.31
8.1.80.0090.00418.18
8.1.70.0100.00518.25
8.1.60.0110.00518.21
8.1.50.0110.00518.25
8.1.40.0100.00518.18
8.1.30.0130.00418.38
8.1.20.0100.00518.39
8.1.10.0110.00418.26
8.1.00.0100.00518.24
8.0.300.0110.00224.15
8.0.290.0070.00422.36
8.0.280.0110.00219.63
8.0.270.0090.00518.62
8.0.260.0080.00618.95
8.0.250.0090.00418.67
8.0.240.0100.00518.11
8.0.230.0080.00718.09
8.0.220.0090.00617.97
8.0.210.0110.00317.80
8.0.200.0100.00417.92
8.0.190.0100.00417.83
8.0.180.0080.00517.78
8.0.170.0090.00417.79
8.0.160.0080.00617.77
8.0.150.0090.00517.76
8.0.140.0100.00417.79
8.0.130.0090.00517.76
8.0.120.0100.00517.78
8.0.110.0110.00417.81
8.0.100.0100.00517.77
8.0.90.0100.00617.79
8.0.80.0110.00417.78
8.0.70.0090.00617.75
8.0.60.0110.00517.75
8.0.50.0120.00317.74
8.0.30.0090.00617.72
8.0.20.0090.00617.79
8.0.10.0120.00317.82
8.0.00.0070.00517.80
7.4.330.0080.00418.72
7.4.320.0110.00417.92
7.4.300.0080.00717.50
7.4.290.0100.00417.45
7.4.280.0120.00417.59
7.4.270.0110.00517.50
7.4.260.0120.00517.55
7.4.250.0120.00517.57
7.4.240.0140.00317.57
7.4.230.0120.00517.54
7.4.220.0100.00517.59
7.4.210.0120.00417.58
7.4.200.0110.00417.57
7.4.190.0090.00617.60
7.4.180.0110.00417.57
7.4.160.0110.00417.60
7.4.150.0120.00317.55
7.4.140.0130.00317.48
7.4.130.0110.00517.42
7.4.120.0100.00417.46
7.4.110.0110.00417.53
7.4.100.0090.00517.55
7.4.90.0100.00417.35
7.4.80.0110.00517.49
7.4.70.0110.00517.45
7.4.60.0110.00417.48
7.4.50.0100.00517.49
7.4.40.0110.00417.45
7.4.30.0100.00517.51
7.4.20.0090.00617.49
7.4.10.0120.00417.52
7.4.00.0080.00517.25
7.3.330.0100.00517.21
7.3.320.0120.00317.37
7.3.310.0120.00417.37
7.3.300.0140.00317.39
7.3.290.0130.00417.38
7.3.280.0130.00417.41
7.3.270.0120.00517.41
7.3.260.0120.00517.37
7.3.250.0130.00417.40
7.3.240.0110.00517.42
7.3.230.0120.00417.39
7.3.220.0120.00317.38
7.3.210.0130.00417.36
7.3.200.0110.00617.36
7.3.190.0110.00617.38
7.3.180.0120.00417.39
7.3.170.0120.00417.40
7.3.160.0110.00517.38
7.3.150.0100.00517.39
7.3.140.0130.00317.39
7.3.130.0140.00417.39
7.3.120.0110.00617.36
7.3.110.0140.00417.31
7.3.100.0100.00517.31
7.3.90.0100.00617.54
7.3.80.0110.00517.35
7.3.70.0120.00417.41
7.3.60.0100.00417.44
7.3.50.0110.00517.39
7.3.40.0110.00417.44
7.3.30.0110.00417.43
7.3.20.0100.00518.55
7.3.10.0110.00518.46
7.3.00.0130.00518.44
7.0.330.0150.01017.71

preferences:
32.07 ms | 400 KiB | 5 Q