3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface invokable { public function __invoke(int $int) : string; } class Foo implements invokable { public function __invoke(int $int) : string { return 12; } } $foo = new 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.70.0040.01416.58
8.3.60.0090.01316.63
8.3.50.0070.01221.20
8.3.40.0040.01218.49
8.3.30.0040.01118.73
8.3.20.0080.00018.35
8.3.10.0000.00821.90
8.3.00.0090.00017.55
8.2.180.0120.00618.41
8.2.170.0120.00622.96
8.2.160.0070.00719.14
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00421.05
8.2.120.0050.00226.35
8.2.110.0060.00321.03
8.2.100.0000.01118.00
8.2.90.0050.00219.22
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00418.03
8.2.50.0030.00618.10
8.2.40.0040.00420.20
8.2.30.0040.00720.52
8.2.20.0000.00717.81
8.2.10.0070.00018.10
8.2.00.0080.00317.92
8.1.280.0120.00325.92
8.1.270.0080.00023.79
8.1.260.0020.00528.09
8.1.250.0000.00728.09
8.1.240.0000.00822.09
8.1.230.0040.00717.42
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0100.00017.35
8.1.190.0120.00017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00718.93
8.1.150.0030.00418.94
8.1.140.0040.00419.48
8.1.130.0050.00217.73
8.1.120.0040.00417.53
8.1.110.0000.00717.41
8.1.100.0040.00417.32
8.1.90.0000.00717.48
8.1.80.0000.00717.50
8.1.70.0000.00817.31
8.1.60.0040.00417.59
8.1.50.0040.00417.47
8.1.40.0040.00417.52
8.1.30.0030.00517.48
8.1.20.0050.00317.53
8.1.10.0000.00717.33
8.1.00.0070.00017.28
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0000.00718.38
8.0.270.0040.00417.12
8.0.260.0030.00317.12
8.0.250.0040.00416.89
8.0.240.0000.00816.98
8.0.230.0030.00417.02
8.0.220.0000.00716.86
8.0.210.0030.00316.84
8.0.200.0000.00616.96
8.0.190.0040.00416.78
8.0.180.0070.00016.94
8.0.170.0070.00016.89
8.0.160.0070.00016.85
8.0.150.0040.00516.75
8.0.140.0030.00616.69
8.0.130.0040.00413.34
8.0.120.0040.00416.84
8.0.110.0040.00416.81
8.0.100.0000.00716.91
8.0.90.0050.00316.92
8.0.80.0110.00316.86
8.0.70.0000.00716.72
8.0.60.0000.00816.86
8.0.50.0020.00516.81
8.0.30.0060.01117.17
8.0.20.0130.00617.40
8.0.10.0030.00516.96
8.0.00.0100.01016.70
7.4.330.0030.00315.08
7.4.320.0060.00016.48
7.4.300.0000.00616.58
7.4.290.0070.00016.59
7.4.280.0040.00416.51
7.4.270.0030.00316.58
7.4.260.0030.00616.38
7.4.250.0060.00316.45
7.4.240.0080.00016.56
7.4.230.0070.00016.57
7.4.220.0090.00916.57
7.4.210.0080.01216.56
7.4.200.0000.00716.54
7.4.160.0060.00916.41
7.4.150.0060.01317.40
7.4.140.0110.01117.86
7.4.130.0080.00816.55
7.4.120.0130.00616.55
7.4.110.0030.01316.52
7.4.100.0100.00716.39
7.4.90.0160.00316.60
7.4.80.0170.00719.39
7.4.70.0090.00916.50
7.4.60.0080.00816.34
7.4.50.0040.01116.20
7.4.40.0090.01516.33
7.4.30.0140.00316.36
7.4.00.0090.00615.07
7.3.330.0000.00513.11
7.3.320.0000.00512.96
7.3.310.0000.00716.18
7.3.300.0070.00016.20
7.3.290.0000.00716.14
7.3.280.0110.00616.21
7.3.270.0030.01417.40
7.3.260.0150.00316.51
7.3.250.0060.01216.23
7.3.240.0060.01016.14
7.3.230.0090.00916.39
7.3.210.0030.01316.54
7.3.200.0100.01319.39
7.3.190.0060.01016.21
7.3.180.0000.01616.22
7.3.170.0130.00316.19
7.3.160.0030.01316.18
7.3.10.0120.00616.15
7.3.00.0240.00616.53
7.2.330.0070.01016.38
7.2.320.0100.01016.57
7.2.310.0070.01016.45
7.2.300.0080.00816.48
7.2.290.0030.01316.33
7.2.130.0120.00416.16
7.2.120.0100.00716.34
7.2.110.0140.00716.13
7.2.100.0100.00716.42
7.2.90.0240.00717.03
7.2.80.0140.00716.58
7.2.70.0100.01016.48
7.2.60.0180.00716.47
7.2.50.0080.00716.45
7.2.40.0120.00616.45
7.2.30.0070.01416.70
7.2.20.0090.00616.41
7.2.10.0120.00416.23
7.2.00.0090.00918.03
7.1.250.0170.00015.26
7.1.200.0090.00615.48
7.1.70.0000.00817.07
7.1.60.0100.01419.30
7.1.50.0170.00716.87
7.1.00.0000.08022.45
7.0.200.0070.00316.73
7.0.60.0170.06320.03
7.0.50.0270.05020.36
7.0.40.0130.05320.33
7.0.30.0400.05020.35
7.0.20.0370.05020.34
7.0.10.0230.07020.34
7.0.00.0270.06020.35
5.6.280.0070.06720.82
5.6.210.0000.04720.48
5.6.200.0030.06721.11
5.6.190.0230.05021.16
5.6.180.0430.04721.07
5.6.170.0300.05321.05
5.6.160.0300.06021.09
5.6.150.0400.04721.07
5.6.140.0200.05021.13
5.6.130.0400.05021.09
5.6.120.0130.05721.09
5.6.110.0170.05321.13
5.6.100.0030.06721.18
5.6.90.0300.05721.07
5.6.80.0230.05320.52
5.6.70.0270.05720.50
5.6.60.0230.07320.11
5.6.50.0130.07020.52
5.6.40.0230.07020.38
5.6.30.0170.08020.46
5.6.20.0270.04320.49
5.6.10.0200.05020.30
5.6.00.0200.05320.53
5.5.350.0270.06320.41
5.5.340.0170.05021.00
5.5.330.0130.05320.67
5.5.320.0400.04720.89
5.5.310.0200.06320.79
5.5.300.0370.05020.88
5.5.290.0200.06720.86
5.5.280.0200.05320.99
5.5.270.0070.06320.98
5.5.260.0170.07021.03
5.5.250.0200.05720.66
5.5.240.0300.05320.40
5.5.230.0170.06720.21
5.5.220.0100.09020.21
5.5.210.0270.05720.22
5.5.200.0170.05720.27
5.5.190.0170.06020.32
5.5.180.0230.04720.27
5.5.160.0200.05020.11
5.5.150.0070.06020.26
5.5.140.0130.05320.20
5.5.130.0170.05020.05
5.5.120.0230.04320.17
5.5.110.0200.05720.38
5.5.100.0100.06020.29
5.5.90.0270.04320.02
5.5.80.0030.06320.12
5.5.70.0170.05720.21
5.5.60.0130.05720.15
5.5.50.0100.06320.14
5.5.40.0230.06720.14
5.5.30.0100.05720.10
5.5.20.0170.05020.08
5.5.10.0170.05320.12
5.5.00.0170.05019.98

preferences:
62.99 ms | 401 KiB | 5 Q