3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FakeStringIntTuple { private $data = []; public function returnsCallable() { return $this; } public function __call(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.0130.00618.43
8.3.50.0090.00616.33
8.3.40.0040.01018.59
8.3.30.0140.00418.39
8.3.20.0070.00021.90
8.3.10.0000.00823.72
8.3.00.0040.00423.62
8.2.180.0180.00016.50
8.2.170.0140.00022.96
8.2.160.0000.01319.27
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00419.21
8.2.120.0070.00026.35
8.2.110.0060.00320.85
8.2.100.0040.00817.72
8.2.90.0040.00417.75
8.2.80.0080.00018.53
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0050.00317.93
8.2.40.0030.00619.23
8.2.30.0000.00720.60
8.2.20.0040.00417.82
8.2.10.0040.00417.93
8.2.00.0070.00017.91
8.1.280.0050.01425.92
8.1.270.0050.00222.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00619.03
8.1.230.0040.00718.91
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00817.40
8.1.190.0040.00416.97
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0000.00718.80
8.1.150.0040.00420.30
8.1.140.0000.00717.50
8.1.130.0030.00318.94
8.1.120.0000.00717.40
8.1.110.0040.00417.28
8.1.100.0040.00417.22
8.1.90.0070.00017.34
8.1.80.0040.00417.21
8.1.70.0050.00317.37
8.1.60.0040.00417.30
8.1.50.0040.00417.34
8.1.40.0040.00417.33
8.1.30.0080.00017.50
8.1.20.0000.00817.49
8.1.10.0060.00317.31
8.1.00.0040.00417.35
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00818.18
8.0.270.0000.00717.16
8.0.260.0070.00016.80
8.0.250.0000.00816.77
8.0.240.0030.00316.88
8.0.230.0030.00316.75
8.0.220.0030.00316.77
8.0.210.0000.00716.69
8.0.200.0040.00416.77
8.0.190.0000.00716.83
8.0.180.0030.00316.81
8.0.170.0000.00916.75
8.0.160.0040.00416.78
8.0.150.0070.00316.80
8.0.140.0070.00016.78
8.0.130.0030.00313.18
8.0.120.0080.00016.81
8.0.110.0040.00416.68
8.0.100.0040.00416.82
8.0.90.0040.00416.81
8.0.80.0030.01216.71
8.0.70.0050.00316.71
8.0.60.0000.00716.71
8.0.50.0000.00716.68
8.0.30.0110.00716.93
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0080.00916.69
7.4.330.0050.00015.55
7.4.320.0030.00316.50
7.4.300.0000.00716.59
7.4.290.0040.00416.41
7.4.280.0000.00916.42
7.4.270.0030.00316.54
7.4.260.0040.00416.50
7.4.250.0000.00816.54
7.4.240.0030.00316.52
7.4.230.0070.00016.68
7.4.220.0040.00416.63
7.4.210.0100.01016.58
7.4.200.0070.00016.33
7.4.160.0070.00916.61
7.4.140.0110.00717.86
7.4.130.0100.01016.55
7.4.120.0110.00916.41
7.4.110.0110.00716.35
7.4.100.0070.01016.51
7.4.90.0090.00916.72
7.4.80.0140.00819.39
7.4.70.0090.00916.42
7.4.60.0090.00616.48
7.4.50.0100.00316.44
7.4.40.0000.02216.40
7.4.00.0080.00814.83
7.3.330.0030.00313.35
7.3.320.0030.00313.34
7.3.310.0040.00416.18
7.3.300.0040.00416.18
7.3.290.0080.00816.31
7.3.280.0090.00716.27
7.3.260.0110.00716.46
7.3.240.0100.00716.36
7.3.230.0090.00616.41
7.3.210.0060.01616.54
7.3.200.0090.00616.27
7.3.190.0120.00616.46
7.3.180.0030.01316.37
7.3.170.0030.01316.35
7.3.160.0030.01316.37
7.3.120.0030.01614.70
7.3.110.0070.01014.54
7.3.100.0030.01014.76
7.3.90.0070.00314.94
7.3.80.0040.00715.11
7.3.70.0060.00314.63
7.3.60.0000.01114.89
7.3.50.0030.00514.80
7.3.40.0080.00614.89
7.3.30.0090.00614.82
7.3.20.0030.01416.60
7.3.10.0070.00716.63
7.3.00.0090.00216.55
7.2.330.0060.01616.55
7.2.320.0110.01116.65
7.2.310.0110.01416.57
7.2.300.0090.00916.59
7.2.290.0110.00716.32
7.2.250.0030.01214.88
7.2.240.0100.01014.61
7.2.230.0070.01015.01
7.2.220.0060.00614.88
7.2.210.0120.00314.61
7.2.200.0030.00615.01
7.2.190.0070.00714.72
7.2.180.0030.01014.95
7.2.170.0040.01014.61
7.2.130.0030.01016.57
7.2.120.0070.01016.51
7.2.110.0070.00716.66
7.2.100.0000.01116.63
7.2.90.0060.00616.84
7.2.80.0070.00716.72
7.2.70.0070.00716.75
7.2.60.0080.00516.89
7.2.50.0090.00316.62
7.2.40.0070.00416.91
7.2.30.0090.00918.23
7.2.20.0080.00718.12
7.2.10.0090.00917.87
7.2.00.0060.01118.08
7.1.330.0080.00815.62
7.1.320.0000.01215.81
7.1.310.0030.00915.53
7.1.300.0000.01015.61
7.1.290.0070.00715.70
7.1.280.0040.00715.70
7.1.270.0000.01015.52
7.1.260.0030.01015.48
7.1.250.0060.00615.29
7.1.240.0030.00615.61
7.1.230.0000.01415.63
7.1.220.0070.00715.57
7.1.210.0040.00415.20
7.1.200.0060.00815.50
7.1.190.0000.01315.68
7.1.180.0030.01015.65
7.1.170.0080.00315.41
7.1.160.0070.00715.50
7.1.150.0100.00617.03
7.1.140.0070.01016.87
7.1.130.0050.01016.72
7.1.120.0070.00817.04
7.1.110.0060.00916.70
7.1.100.0130.00416.78
7.1.90.0090.00916.40
7.1.80.0080.01116.51
7.1.70.0080.00916.24
7.1.60.0160.00825.37
7.1.50.0150.01525.23
7.1.40.0190.00724.92
7.1.30.0160.00924.99
7.1.20.0150.01325.06
7.1.10.0060.01116.04
7.1.00.0060.00616.06
7.0.330.0070.00314.99
5.6.380.0090.00314.00

preferences:
31.54 ms | 400 KiB | 5 Q