3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FakeStringIntTuple { private $data = []; public function returnsCallable() { return $this; } public function __invoke(string $a, int $b) { $this->data[] = [$a, $b]; return $this; } } (new FakeStringIntTuple())('foo', 123); $a = new FakeStringIntTuple(); $a->returnsCallable()('bar', 456); $tuple = (new FakeStringIntTuple()) ('foo', 123) ('bar', 456) ('baz', 789); var_dump($tuple);

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.0150.00618.28
8.3.50.0150.00016.44
8.3.40.0070.01118.83
8.3.30.0070.01118.71
8.3.20.0090.00921.90
8.3.10.0050.00323.49
8.3.00.0000.00823.71
8.2.180.0120.00316.48
8.2.170.0070.01122.96
8.2.160.0070.00719.29
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00819.19
8.2.120.0040.00426.35
8.2.110.0090.00020.38
8.2.100.0080.00417.72
8.2.90.0000.00819.77
8.2.80.0090.00018.03
8.2.70.0000.00818.05
8.2.60.0060.00317.50
8.2.50.0070.00018.22
8.2.40.0000.00720.36
8.2.30.0040.00420.75
8.2.20.0000.00718.20
8.2.10.0000.00718.01
8.2.00.0040.00418.03
8.1.280.0070.00725.92
8.1.270.0130.00623.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00020.70
8.1.230.0040.00720.91
8.1.220.0060.00317.74
8.1.210.0040.00418.79
8.1.200.0050.00317.36
8.1.190.0000.00917.25
8.1.180.0040.00418.10
8.1.170.0040.00418.54
8.1.160.0000.00818.91
8.1.150.0070.00020.20
8.1.140.0080.00019.48
8.1.130.0030.00319.07
8.1.120.0070.00017.49
8.1.110.0000.00717.43
8.1.100.0070.00017.48
8.1.90.0090.00017.54
8.1.80.0040.00417.48
8.1.70.0070.00017.42
8.1.60.0000.00917.60
8.1.50.0000.00817.42
8.1.40.0000.00817.50
8.1.30.0040.00417.60
8.1.20.0040.00417.50
8.1.10.0030.00617.60
8.1.00.0000.00817.36
8.0.300.0040.00419.93
8.0.290.0050.00316.75
8.0.280.0040.00418.46
8.0.270.0030.00317.21
8.0.260.0050.00316.79
8.0.250.0000.00716.98
8.0.240.0000.00717.05
8.0.230.0000.00816.99
8.0.220.0000.00716.94
8.0.210.0030.00316.81
8.0.200.0040.00416.80
8.0.190.0070.00016.98
8.0.180.0040.00416.82
8.0.170.0000.00916.90
8.0.160.0030.00316.95
8.0.150.0030.00616.82
8.0.140.0000.00716.88
8.0.130.0000.00513.29
8.0.120.0040.00416.91
8.0.110.0040.00416.84
8.0.100.0000.00716.87
8.0.90.0000.00716.90
8.0.80.0060.01016.86
8.0.70.0000.00716.71
8.0.60.0070.00016.92
8.0.50.0040.00416.93
8.0.30.0070.01117.15
8.0.20.0060.01217.40
8.0.10.0040.00417.02
8.0.00.0070.01116.74
7.4.330.0050.00015.55
7.4.320.0060.00016.46
7.4.300.0000.00716.37
7.4.290.0050.00316.51
7.4.280.0030.00616.60
7.4.270.0050.00316.51
7.4.260.0070.00016.55
7.4.250.0030.00516.60
7.4.240.0000.00816.60
7.4.230.0030.00316.40
7.4.220.0040.00416.68
7.4.210.0040.01616.56
7.4.200.0070.00016.71
7.4.160.0110.00616.45
7.4.140.0100.01017.86
7.4.130.0120.00916.37
7.4.120.0090.01116.51
7.4.110.0150.00316.65
7.4.100.0110.00616.58
7.4.90.0150.00616.42
7.4.80.0150.00819.39
7.4.70.0060.01216.38
7.4.60.0090.00916.55
7.4.50.0140.00416.56
7.4.40.0100.01316.55
7.4.10.0110.00816.58
7.4.00.0030.01115.46
7.3.330.0030.00313.34
7.3.320.0070.00013.34
7.3.310.0070.00016.36
7.3.300.0000.00716.19
7.3.290.0080.00716.31
7.3.280.0090.00816.29
7.3.260.0050.01416.55
7.3.240.0100.00716.41
7.3.230.0110.01116.51
7.3.210.0090.00916.43
7.3.200.0100.00716.47
7.3.190.0130.00516.61
7.3.180.0030.01316.34
7.3.170.0170.00716.49
7.3.160.0080.00816.30
7.3.130.0030.01616.39
7.3.120.0080.01015.54
7.3.110.0030.01415.70
7.3.100.0080.01115.52
7.3.90.0090.00615.50
7.3.80.0060.00315.62
7.3.70.0030.01215.41
7.3.60.0090.00515.54
7.3.50.0060.00715.39
7.3.40.0060.00815.62
7.3.30.0090.00515.56
7.3.20.0050.00517.40
7.3.10.0080.00617.29
7.3.00.0070.00917.44
7.2.330.0030.01516.28
7.2.320.0100.00716.77
7.2.310.0030.01616.29
7.2.300.0070.01616.80
7.2.290.0070.01116.66
7.2.260.0070.00716.71
7.2.250.0100.01015.54
7.2.240.0030.01015.81
7.2.230.0070.00915.97
7.2.220.0070.01015.72
7.2.210.0020.01215.86
7.2.200.0100.00715.83
7.2.190.0030.01415.80
7.2.180.0080.00715.59
7.2.170.0050.01115.73
7.2.160.0050.01015.63
7.2.150.0090.00617.67
7.2.140.0040.00717.58
7.2.130.0020.01317.70
7.2.120.0050.00617.65
7.2.110.0060.00817.60
7.2.100.0050.00817.43
7.2.90.0080.00717.58
7.2.80.0030.01217.55
7.2.70.0030.01117.67
7.2.60.0080.00717.22
7.2.50.0080.00517.53
7.2.40.0080.00817.62
7.2.30.0080.01018.55
7.2.20.0070.01118.33
7.2.10.0100.00718.38
7.2.00.0090.01018.42
7.1.330.0070.00916.54
7.1.320.0070.00916.72
7.1.310.0050.01016.52
7.1.300.0070.00916.51
7.1.290.0050.00916.43
7.1.280.0070.00916.54
7.1.270.0070.00616.72
7.1.260.0080.00616.41
7.1.250.0080.00716.45
7.1.240.0040.00916.53
7.1.230.0070.00916.56
7.1.220.0060.00616.49
7.1.210.0110.00216.65
7.1.200.0080.00716.38
7.1.190.0060.00816.56
7.1.180.0070.00316.68
7.1.170.0050.00716.47
7.1.160.0080.00516.53
7.1.150.0090.00817.19
7.1.140.0080.00917.24
7.1.130.0090.01017.02
7.1.120.0050.01217.06
7.1.110.0070.00917.00
7.1.100.0070.00717.06
7.1.90.0030.01017.11
7.1.80.0070.00817.01
7.1.70.0070.00616.69
7.1.60.0150.01222.64
7.1.50.0130.01322.60
7.1.40.0110.01122.46
7.1.30.0100.01322.47
7.1.20.0180.01022.54
7.1.10.0050.01116.57
7.1.00.0050.01116.51
7.0.330.0080.00816.20
7.0.320.0040.01116.25
7.0.310.0080.00416.23
7.0.300.0040.00516.15
7.0.290.0090.00516.17
7.0.280.0060.00316.31
7.0.270.0040.00716.14
7.0.260.0050.01016.10
7.0.250.0050.00716.22
7.0.240.0060.00716.34
7.0.230.0020.01216.27
7.0.220.0050.00616.21
7.0.210.0030.00916.23
7.0.200.0050.01016.25
7.0.190.0050.00716.30
7.0.180.0020.01016.19
7.0.170.0090.00516.39
7.0.160.0030.01016.38
7.0.150.0050.00916.30
7.0.140.0030.00916.20
7.0.130.0040.00916.21
7.0.120.0060.00816.03
7.0.110.0080.00516.22
7.0.100.0040.00816.19
7.0.90.0040.01016.31
7.0.80.0070.00516.19
7.0.70.0070.00716.13
7.0.60.0090.00316.31
7.0.50.0070.00716.22
7.0.40.0050.00814.24
7.0.30.0090.00314.16
7.0.20.0080.00614.29
7.0.10.0050.00514.02
7.0.00.0050.00714.23
5.6.400.0050.00814.83
5.6.390.0030.00914.60
5.6.380.0060.00514.90
5.6.370.0060.00815.04
5.6.360.0030.01015.02
5.6.350.0070.00614.93
5.6.340.0080.00314.87
5.6.330.0070.00614.99
5.6.320.0060.00415.06
5.6.310.0080.00514.70
5.6.300.0110.00314.96
5.6.290.0070.00214.73
5.6.280.0070.00715.00
5.6.270.0000.01515.08
5.6.260.0040.01014.92
5.6.250.0050.00714.79
5.6.240.0050.00514.83
5.6.230.0050.01114.88
5.6.220.0070.00414.85
5.6.210.0040.00814.93
5.6.200.0070.00814.86
5.6.190.0090.00615.03
5.6.180.0030.00815.12
5.6.170.0050.00714.79
5.6.160.0030.01014.88
5.6.150.0050.01014.75
5.6.140.0050.01014.72
5.6.130.0090.00614.92
5.6.120.0030.01114.92
5.6.110.0060.01015.07
5.6.100.0080.00314.91
5.6.90.0080.00214.87
5.6.80.0050.00614.65
5.6.70.0050.00614.81
5.6.60.0050.00714.88
5.6.50.0050.01214.82
5.6.40.0050.00914.78
5.6.30.0110.00414.95
5.6.20.0040.00714.79
5.6.10.0080.00814.71
5.6.00.0080.00814.91

preferences:
51.45 ms | 401 KiB | 5 Q