3v4l.org

run code in 300+ PHP versions simultaneously
<?php class πŸš—πŸ­ { private πŸš— $πŸš—; public function __construct() { $this->πŸš— = new πŸš—(); } public function withπŸͺ‘(): self { $this->πŸš—->πŸͺ‘ = true; return $this; } public function build(): πŸš— { return clone $this->πŸš—; } } class πŸš— { public bool $πŸͺ‘ = false; public function getInfo(): string { return $this->πŸͺ‘ ? 'this car with chair' : 'this car without chair' ; } } $πŸš—πŸ­ = new πŸš—πŸ­(); $πŸš— = $πŸš—πŸ­->build(); var_dump($πŸš—->getInfo()); $πŸš— = $πŸš—πŸ­->withπŸͺ‘()->build(); var_dump($πŸš—->getInfo());

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.4.120.0100.00820.59
8.4.110.0060.00624.31
8.4.100.0060.00317.84
8.4.90.0130.00720.34
8.4.80.0050.00319.05
8.4.70.0090.00518.97
8.4.60.0110.01020.54
8.4.50.0120.00718.70
8.4.40.0190.00019.31
8.4.30.0060.01320.68
8.4.20.0130.00619.00
8.4.10.0040.00419.27
8.3.250.0130.00518.64
8.3.240.0090.01116.35
8.3.230.0040.00416.45
8.3.220.0090.00919.05
8.3.210.0120.00716.48
8.3.200.0030.00616.65
8.3.190.0110.00917.16
8.3.180.0120.01018.59
8.3.170.0110.00718.86
8.3.160.0120.00616.48
8.3.150.0150.00416.80
8.3.140.0080.00016.78
8.3.130.0140.00716.73
8.3.120.0150.00419.14
8.3.110.0120.00620.94
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0060.00316.63
8.3.70.0120.00316.58
8.3.60.0140.00716.88
8.3.50.0140.00418.28
8.3.40.0000.01518.62
8.3.30.0000.01518.84
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0080.00916.82
8.2.280.0100.00918.48
8.2.270.0130.00616.80
8.2.260.0110.00716.87
8.2.250.0030.00518.39
8.2.240.0030.00617.46
8.2.230.0040.00722.58
8.2.220.0090.00037.54
8.2.210.0000.00826.77
8.2.200.0060.00316.75
8.2.190.0140.00716.88
8.2.180.0140.00725.92
8.2.170.0130.00318.87
8.2.160.0100.00622.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00420.96
8.2.110.0100.00720.35
8.2.100.0000.01117.78
8.2.90.0040.00417.75
8.2.80.0040.00418.61
8.2.70.0040.00417.50
8.2.60.0070.00317.92
8.2.50.0040.00418.05
8.2.40.0040.00418.09
8.2.30.0000.00717.99
8.2.20.0070.00017.96
8.2.10.0040.00421.03
8.2.00.0070.00019.31
8.1.330.0050.00316.81
8.1.320.0110.00816.26
8.1.310.0090.00618.53
8.1.300.0030.00617.93
8.1.290.0070.00318.88
8.1.280.0110.00425.92
8.1.270.0090.00624.66
8.1.260.0070.00726.35
8.1.250.0000.00828.09
8.1.240.0070.00420.73
8.1.230.0110.00019.21
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00917.35
8.1.180.0060.00318.10
8.1.170.0080.00018.59
8.1.160.0000.00819.07
8.1.150.0070.00018.73
8.1.140.0000.00818.91
8.1.130.0070.00020.16
8.1.120.0070.00017.45
8.1.110.0040.00417.41
8.1.100.0000.00717.45
8.1.90.0040.00417.41
8.1.80.0070.00317.41
8.1.70.0060.00317.40
8.1.60.0000.00917.66
8.1.50.0040.00417.59
8.1.40.0000.00717.43
8.1.30.0030.00517.69
8.1.20.0030.00617.63
8.1.10.0040.00417.62
8.1.00.0050.00317.54
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0040.00418.48
8.0.270.0030.00317.96
8.0.260.0060.00018.46
8.0.250.0000.00716.84
8.0.240.0030.00316.92
8.0.230.0040.00416.97
8.0.220.0030.00316.72
8.0.210.0000.00816.86
8.0.200.0050.00316.84
8.0.190.0000.00816.89
8.0.180.0090.00016.76
8.0.170.0060.00316.86
8.0.160.0000.00716.77
8.0.150.0040.00416.80
8.0.140.0000.01016.82
8.0.130.0000.00713.37
8.0.120.0000.00716.84
8.0.110.0000.00716.71
8.0.100.0040.00416.67
8.0.90.0070.00016.95
8.0.80.0110.00616.83
8.0.70.0030.00516.80
8.0.60.0000.00716.73
8.0.50.0070.00016.78
8.0.30.0210.00816.79
8.0.20.0140.01716.85
8.0.10.0240.01016.91
8.0.00.0210.01517.01
7.4.330.0020.00215.55
7.4.320.0030.00316.39
7.4.300.0080.00316.51
7.4.290.0030.00316.40
7.4.280.0040.00416.43
7.4.270.0000.00716.63
7.4.260.0000.00513.27
7.4.250.0000.00816.44
7.4.240.0020.00516.59
7.4.230.0040.00416.57
7.4.220.0010.00616.55
7.4.210.0080.01016.63
7.4.200.0000.00716.65
7.4.160.0180.01216.59
7.4.150.0230.00916.59
7.4.140.0240.01216.50
7.4.130.0240.00616.39
7.4.120.0170.01016.47
7.4.110.0140.00916.52
7.4.100.0120.01016.53
7.4.90.0160.00816.56
7.4.80.0150.00716.45
7.4.70.0150.00916.51
7.4.60.0110.01516.42
7.4.50.0160.00716.48
7.4.40.0140.01216.29
7.4.30.0150.00516.53
7.4.20.0140.00916.51
7.4.10.0140.01016.57
7.4.00.0130.00516.50
7.3.330.0000.00716.23
7.3.320.0030.00313.02
7.3.310.0030.00316.22
7.3.300.0000.00616.01
7.3.290.0080.01116.19
7.3.270.0260.01016.19
7.3.260.0280.00916.14
7.3.250.0220.00516.14
7.3.240.0130.00916.18
7.3.230.0150.00716.16
7.3.220.0180.00716.13
7.3.210.0120.00916.09
7.3.200.0190.00716.09
7.3.190.0190.00716.13
7.3.180.0200.00716.09
7.3.170.0120.01416.18
7.3.160.0180.01016.16
7.3.150.0160.00716.20
7.3.140.0120.01116.11
7.3.130.0140.00916.14
7.3.120.0130.01116.10
7.3.110.0180.00615.99
7.3.100.0170.00615.99
7.3.90.0120.00916.38
7.3.80.0150.01016.08
7.3.70.0150.00616.22
7.3.60.0150.00716.18
7.3.50.0140.01016.24
7.3.40.0150.00816.23
7.3.30.0170.00716.17
7.3.20.0320.01616.22
7.3.10.0120.01416.14
7.3.00.0380.01116.22

preferences:
117.4 ms | 403 KiB | 5 Q