3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function getFoo() : string; } class Bar { public function __construct(Foo $foo) {} }

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.0080.00616.38
8.3.50.0120.00721.99
8.3.40.0040.01118.64
8.3.30.0110.00318.53
8.3.20.0040.00419.02
8.3.10.0050.00321.60
8.3.00.0060.00320.39
8.2.180.0090.00916.38
8.2.170.0090.00622.96
8.2.160.0100.00320.94
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00422.09
8.2.120.0070.00026.35
8.2.110.0080.00421.06
8.2.100.0120.00017.59
8.2.90.0030.00518.92
8.2.80.0060.00317.97
8.2.70.0100.00017.50
8.2.60.0030.00617.80
8.2.50.0000.00818.10
8.2.40.0050.00322.12
8.2.30.0040.00419.05
8.2.20.0040.00417.61
8.2.10.0040.00417.96
8.2.00.0040.00417.89
8.1.280.0120.00925.92
8.1.270.0000.00823.71
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0030.00621.18
8.1.230.0040.00817.45
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0030.00518.57
8.1.160.0080.00022.12
8.1.150.0040.00418.66
8.1.140.0050.00219.48
8.1.130.0030.00317.45
8.1.120.0000.00717.27
8.1.110.0060.00317.29
8.1.100.0000.00717.39
8.1.90.0000.00717.30
8.1.80.0030.00517.23
8.1.70.0040.00417.28
8.1.60.0080.00017.47
8.1.50.0000.00817.43
8.1.40.0040.00417.39
8.1.30.0000.00817.42
8.1.20.0040.00417.53
8.1.10.0060.00317.38
8.1.00.0000.00717.29
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.31
8.0.270.0000.00717.13
8.0.260.0000.00617.17
8.0.250.0000.00616.86
8.0.240.0000.00816.77
8.0.230.0000.00816.86
8.0.220.0000.00716.68
8.0.210.0040.00416.67
8.0.200.0060.00016.78
8.0.190.0000.00716.84
8.0.180.0000.00716.80
8.0.170.0040.00416.75
8.0.160.0030.00416.73
8.0.150.0070.00016.63
8.0.140.0080.00316.62
8.0.130.0000.00613.07
8.0.120.0080.00016.68
8.0.110.0050.00216.76
8.0.100.0000.00816.87
8.0.90.0040.00416.78
8.0.80.0110.00416.77
8.0.70.0000.00816.87
8.0.60.0070.00016.56
8.0.50.0070.00016.87
8.0.30.0090.00917.01
8.0.20.0090.01217.40
8.0.10.0040.00416.69
8.0.00.0000.01616.58
7.4.330.0000.00515.08
7.4.320.0030.00316.38
7.4.300.0000.00716.32
7.4.290.0070.00016.36
7.4.280.0070.00016.46
7.4.270.0000.00716.48
7.4.260.0030.00316.25
7.4.250.0040.00416.43
7.4.240.0030.00316.51
7.4.230.0000.00816.44
7.4.220.0060.01216.29
7.4.210.0030.01416.27
7.4.200.0030.00316.23
7.4.160.0100.00816.36
7.4.150.0080.01117.40
7.4.140.0120.00817.86
7.4.130.0100.00816.31
7.4.120.0100.00716.45
7.4.110.0140.00316.28
7.4.100.0030.01816.39
7.4.90.0150.00416.43
7.4.80.0240.00019.39
7.4.70.0090.01216.47
7.4.60.0070.01016.44
7.4.50.0100.00616.26
7.4.40.0130.00916.54
7.4.30.0140.00916.20
7.4.00.0080.00714.91
7.3.330.0000.00513.25
7.3.320.0030.00312.95
7.3.310.0000.00716.21
7.3.300.0070.00016.18
7.3.290.0060.01016.15
7.3.280.0080.01016.17
7.3.270.0090.00917.40
7.3.260.0130.00816.19
7.3.250.0130.00416.32
7.3.240.0140.00416.37
7.3.230.0130.01016.39
7.3.210.0130.00316.30
7.3.200.0060.01016.48
7.3.190.0070.01016.23
7.3.180.0020.02016.09
7.3.170.0100.00616.46
7.3.160.0100.00616.11
7.3.120.0120.00814.31
7.3.110.0070.01114.36
7.3.100.0070.00414.70
7.3.90.0080.00814.36
7.3.80.0090.00614.82
7.3.70.0080.00814.75
7.3.60.0000.01214.71
7.3.50.0120.00314.67
7.3.40.0080.00614.41
7.3.30.0060.00614.50
7.3.20.0000.01016.58
7.3.10.0070.00316.42
7.3.00.0070.00716.36
7.2.330.0140.00316.25
7.2.320.0140.00316.46
7.2.310.0110.00816.50
7.2.300.0110.01016.52
7.2.290.0070.01016.28
7.2.250.0070.00714.68
7.2.240.0090.00614.70
7.2.230.0030.01214.79
7.2.220.0090.00914.70
7.2.210.0030.01214.60
7.2.200.0060.00614.69
7.2.190.0000.01414.68
7.2.180.0140.00314.75
7.2.170.0060.00614.69
7.2.60.0000.01316.76
7.2.00.0040.01119.30
7.1.330.0100.00315.59
7.1.320.0030.00915.59
7.1.310.0090.00615.43
7.1.300.0090.00615.56
7.1.290.0090.00615.69
7.1.280.0030.01315.66
7.1.270.0070.01015.60
7.1.260.0080.00415.73
7.1.200.0000.00915.71
7.1.100.0040.01118.11
7.1.70.0030.00716.77
7.1.60.0080.00419.75
7.1.50.0030.01216.82
7.1.00.0030.07722.44
7.0.200.0060.00614.80
7.0.90.0270.07019.92
7.0.80.0270.05320.04
7.0.70.0270.06020.09
7.0.60.0200.06319.99
7.0.50.0370.04320.28
7.0.40.0270.05320.33
7.0.30.0370.05720.34
7.0.20.0330.05320.35
7.0.10.0200.06320.29
7.0.00.0230.06020.20
5.6.240.0070.06320.64
5.6.230.0100.05720.75
5.6.220.0130.05020.59
5.6.210.0100.06320.75
5.6.200.0130.05321.15
5.6.190.0070.05721.10
5.6.180.0070.06021.12
5.6.170.0070.06021.10
5.6.160.0200.04721.06
5.6.150.0100.05721.08
5.6.140.0100.06021.01
5.6.130.0100.05721.08
5.6.120.0270.04021.07
5.6.110.0070.06021.16
5.6.100.0230.04721.13
5.6.90.0130.05721.00
5.6.80.0130.04720.48
5.6.70.0100.05720.47
5.6.60.0100.05720.49
5.6.50.0070.06020.56
5.6.40.0170.04720.53
5.6.30.0100.05320.38
5.6.20.0200.04320.52
5.6.10.0070.05720.45
5.6.00.0030.06320.42

preferences:
58.15 ms | 401 KiB | 5 Q