3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class Test { private \finfo $finfo; public function __construct() { $finfo = finfo_open(); if ($finfo === false) { throw new \RuntimeException(); } $this->finfo = $finfo; var_dump('opened'); } public function close(): void { finfo_close($this->finfo); var_dump('closed'); } } $t = new Test(); $t->close();

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.5.30.0100.00820.08
8.5.20.0100.00820.23
8.5.10.0090.00918.61
8.5.00.0120.00920.20
8.4.180.0080.01323.90
8.4.170.0070.00422.07
8.4.160.0070.01523.95
8.4.150.0020.00114.05
8.4.140.0130.00917.71
8.4.130.0050.00618.65
8.4.120.0110.00923.95
8.4.110.0100.00418.73
8.4.100.0050.00617.49
8.4.90.0040.00417.82
8.4.80.0130.00717.81
8.4.70.0060.00217.72
8.4.60.0050.00718.59
8.4.50.0130.00719.53
8.4.40.0070.00719.32
8.4.30.0090.00920.48
8.4.20.0120.00420.82
8.4.10.0030.00622.58
8.3.300.0070.01320.47
8.3.290.0110.01220.85
8.3.280.0150.00818.12
8.3.270.0120.00716.26
8.3.260.0110.00816.60
8.3.250.0080.00619.04
8.3.240.0110.00716.92
8.3.230.0110.00816.64
8.3.220.0120.00616.60
8.3.210.0050.00416.78
8.3.200.0050.00416.54
8.3.190.0110.00717.06
8.3.180.0030.00516.54
8.3.170.0090.00018.73
8.3.160.0080.00416.66
8.3.150.0160.00319.10
8.3.140.0150.00016.59
8.3.130.0000.00918.50
8.3.120.0030.00620.71
8.3.110.0060.00320.94
8.3.100.0060.00324.06
8.3.90.0000.00726.77
8.3.80.0030.00716.50
8.3.70.0090.00616.58
8.3.60.0080.00816.38
8.3.50.0110.00819.97
8.3.40.0070.00720.47
8.3.30.0090.00619.27
8.3.20.0030.00624.18
8.3.10.0050.00324.66
8.3.00.0030.00526.16
8.2.300.0130.00618.13
8.2.290.0090.00120.58
8.2.280.0080.01318.38
8.2.270.0120.00617.00
8.2.260.0120.00916.70
8.2.250.0080.00016.68
8.2.240.0040.01217.00
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0110.00426.77
8.2.200.0040.00717.00
8.2.190.0150.00616.63
8.2.180.0180.00325.92
8.2.170.0110.00318.95
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00726.16
8.2.110.0060.00321.18
8.2.100.0080.00317.72
8.2.90.0090.00017.63
8.2.80.0000.00818.77
8.2.70.0050.00317.63
8.2.60.0080.00017.50
8.2.50.0080.00017.98
8.2.40.0080.00418.22
8.2.30.0070.00017.88
8.2.20.0040.00420.38
8.2.10.0000.00718.01
8.2.00.0040.00419.19
8.1.340.0080.01217.35
8.1.330.0110.00816.82
8.1.320.0100.00915.99
8.1.310.0120.00316.65
8.1.300.0060.00918.53
8.1.290.0030.00630.84
8.1.280.0150.00325.92
8.1.270.0070.00023.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.84
8.1.230.0060.00620.97
8.1.220.0000.00818.54
8.1.210.0070.00318.77
8.1.200.0060.00317.25
8.1.190.0050.00517.10
8.1.180.0000.00818.10
8.1.170.0080.00017.62
8.1.160.0070.00018.86
8.1.150.0040.00418.50
8.1.140.0040.00417.26
8.1.130.0000.00718.83
8.1.120.0070.00017.32
8.1.110.0040.00417.28
8.1.100.0040.00317.42
8.1.90.0080.00017.31
8.1.80.0040.00717.43
8.1.70.0000.00717.42
8.1.60.0030.00517.57
8.1.50.0050.00317.44
8.1.40.0060.00317.48
8.1.30.0210.00317.65
8.1.20.0160.00617.66
8.1.10.0090.00317.55
8.1.00.0210.00317.36
8.0.300.0040.00419.89
8.0.290.0000.00716.63
8.0.280.0000.00718.38
8.0.270.0040.00416.82
8.0.260.0030.00318.41
8.0.250.0050.00316.98
8.0.240.0000.00717.03
8.0.230.0050.00316.89
8.0.220.0020.00516.91
8.0.210.0050.00216.87
8.0.200.0000.00816.87
8.0.190.0000.00717.00
8.0.180.0000.00716.98
8.0.170.0060.00416.88
8.0.160.0140.00016.85
8.0.150.0110.00616.77
8.0.140.0170.00316.85
8.0.130.0170.00816.80
8.0.120.0130.01316.91
8.0.110.0140.00316.92
8.0.100.0130.00016.70
8.0.90.0130.00416.78
8.0.80.0190.00316.89
8.0.70.0140.00716.66
8.0.60.0170.00316.77
8.0.50.0190.00316.86
8.0.30.0090.00716.73
8.0.20.0170.00516.93
8.0.10.0140.00616.81
7.4.330.0000.00515.55
7.4.320.0000.00616.51
7.4.300.0030.00316.54
7.4.290.0040.00416.43
7.4.280.0160.00316.43
7.4.270.0190.00316.55
7.4.260.0180.00316.45
7.4.250.0120.00716.39
7.4.240.0200.00016.55
7.4.230.0120.00816.48
7.4.220.0160.00416.39
7.4.210.0160.00316.55
7.4.200.0170.00016.38
7.4.190.0150.00416.59
7.4.180.0080.01016.48
7.4.160.0090.00916.51
7.4.150.0100.00816.46
7.4.140.0180.00016.33
7.4.130.0150.00316.57
7.4.120.0090.00916.38
7.4.110.0190.00016.51
7.4.100.0160.00416.36
7.4.90.0150.00516.48
7.4.80.0100.01016.49
7.4.70.0190.00016.45
7.4.60.0130.00716.52
7.4.50.0110.00316.34
7.4.40.0070.00316.50
7.4.30.0090.00916.43
7.4.20.0110.00716.25
7.4.10.0150.00316.38
7.4.00.0030.00816.30

preferences:
35.64 ms | 403 KiB | 5 Q