3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $name; public function __construct(string $name) { $this->name = $name; } public function getName() { return $this->name; } public function __toInt() { return 0; } } function f(int $a, C $b) : void { var_dump($a, $b); } $a = new C('a'); $b = new C('b'); f($a, $b);

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.0140.00718.55
8.3.50.0100.00616.39
8.3.40.0070.01118.96
8.3.30.0040.01118.81
8.3.20.0000.00820.86
8.3.10.0070.00021.94
8.3.00.0050.00319.66
8.2.180.0150.00716.50
8.2.170.0070.01022.96
8.2.160.0070.01022.00
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0110.00420.57
8.2.120.0040.00426.35
8.2.110.0080.00320.52
8.2.100.0110.00018.03
8.2.90.0040.00419.09
8.2.80.0040.00418.03
8.2.70.0050.00317.63
8.2.60.0060.00317.89
8.2.50.0000.00818.10
8.2.40.0070.00020.59
8.2.30.0030.00519.11
8.2.20.0050.00218.05
8.2.10.0040.00418.05
8.2.00.0000.00717.86
8.1.280.0130.01025.92
8.1.270.0050.00322.19
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00420.75
8.1.230.0080.00419.08
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.25
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00419.02
8.1.150.0040.00420.61
8.1.140.0040.00419.48
8.1.130.0000.00718.86
8.1.120.0040.00417.30
8.1.110.0000.00717.43
8.1.100.0050.00217.45
8.1.90.0000.00717.32
8.1.80.0030.00617.43
8.1.70.0080.00017.29
8.1.60.0080.00017.54
8.1.50.0060.00317.43
8.1.40.0070.00317.56
8.1.30.0040.00417.64
8.1.20.0060.00317.55
8.1.10.0000.00817.57
8.1.00.0080.00017.35
8.0.300.0080.00018.77
8.0.290.0080.00016.63
8.0.280.0000.00718.44
8.0.270.0020.00517.19
8.0.260.0080.00016.76
8.0.250.0070.00016.96
8.0.240.0060.00316.86
8.0.230.0070.00016.98
8.0.220.0030.00316.92
8.0.210.0030.00616.93
8.0.200.0000.00816.83
8.0.190.0030.00616.99
8.0.180.0030.00516.91
8.0.170.0000.00817.00
8.0.160.0060.00316.93
8.0.150.0040.00416.79
8.0.140.0000.00716.86
8.0.130.0030.00313.36
8.0.120.0040.00416.88
8.0.110.0050.00216.74
8.0.100.0020.00516.76
8.0.90.0070.00016.82
8.0.80.0070.01516.81
8.0.70.0000.00716.91
8.0.60.0040.00416.84
8.0.50.0050.00216.80
8.0.30.0110.00817.22
8.0.20.0110.00817.42
8.0.10.0070.00016.89
8.0.00.0090.00816.64
7.4.330.0000.00515.55
7.4.320.0030.00316.40
7.4.300.0070.00016.50
7.4.290.0000.00716.41
7.4.280.0030.00516.48
7.4.270.0050.00316.46
7.4.260.0030.00313.39
7.4.250.0000.00716.52
7.4.240.0050.00216.46
7.4.230.0070.00016.61
7.4.220.0100.01616.66
7.4.210.0030.01116.59
7.4.200.0070.00016.64
7.4.160.0120.00416.49
7.4.150.0100.00717.40
7.4.140.0140.00717.86
7.4.130.0030.01416.54
7.4.120.0110.00916.44
7.4.110.0080.01016.64
7.4.100.0090.00616.35
7.4.90.0100.00716.69
7.4.80.0030.01319.39
7.4.70.0060.01016.41
7.4.60.0130.00316.46
7.4.50.0030.01116.31
7.4.40.0090.00916.52
7.4.30.0090.00616.52
7.4.00.0040.00814.93
7.3.330.0000.00613.18
7.3.320.0050.00013.32
7.3.310.0040.00416.39
7.3.300.0030.00316.25
7.3.290.0030.00316.41
7.3.280.0080.00916.32
7.3.270.0030.01417.40
7.3.260.0110.00916.51
7.3.250.0140.00816.34
7.3.240.0130.00616.38
7.3.230.0060.01016.38
7.3.210.0140.01016.39
7.3.200.0110.00416.48
7.3.190.0070.01016.52
7.3.180.0030.01516.57
7.3.170.0030.01316.37
7.3.160.0080.00816.35
7.2.330.0030.02116.67
7.2.320.0130.00316.40
7.2.310.0150.00616.63
7.2.300.0130.01016.59
7.2.290.0090.00616.76
7.2.60.0070.00716.51
7.2.00.0060.00619.22
7.1.200.0070.00515.58
7.1.100.0000.01217.79
7.1.70.0040.00416.87
7.1.60.3070.01033.04
7.1.50.0230.02732.89
7.1.40.0370.01032.61
7.1.30.3130.02032.65
7.1.20.0600.01732.63
7.1.10.0400.01014.71
7.1.00.0170.01314.54
7.0.200.0130.01014.84
7.0.190.0030.01715.01
7.0.180.0300.01314.66
7.0.170.4230.01014.57
7.0.160.0030.01714.41
7.0.150.6700.01314.71
7.0.140.0170.01714.59
7.0.130.0030.02014.70
7.0.120.0130.01014.61
7.0.110.0300.01314.54
7.0.100.0330.01714.36
7.0.90.0070.01014.45
7.0.80.0070.01714.41
7.0.70.0230.02014.50
7.0.60.0100.01314.32
7.0.50.0200.01014.40
7.0.40.0070.01314.51
7.0.30.0030.01714.63
7.0.20.0400.01314.63
7.0.10.0070.01714.45
7.0.00.0100.01014.30

preferences:
51.99 ms | 401 KiB | 5 Q