3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IOException extends Exception { protected $path; protected $mode; public function __construct($path, $mode, $message) { parent::__construct($message); $this->path = $path; $this->mode = $mode; } public function getPath() { return $this->path; } } class File { protected $path; protected $handle; protected $mode; public function __construct($path) { $this->path = $path; } public function open($mode) { $this->handle = @fopen($this->path, $mode); if (!$this->handle) { throw new IOException( $this->path, $mode, "could not open the file"); } $this->mode = $mode; } } $file = new File("/no/file"); try { $file->open("r"); } catch (IOException $io) { printf( "Exception occured opening %s\n", $io->getPath()); var_dump($io); } ?>

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.70.0000.01518.68
8.3.60.0090.01218.55
8.3.50.0130.00621.14
8.3.40.0070.00718.84
8.3.30.0130.00720.19
8.3.20.0040.01420.29
8.3.10.0040.00421.05
8.3.00.0090.00622.48
8.2.190.0120.00617.00
8.2.180.0100.01616.75
8.2.170.0060.00922.96
8.2.160.0140.00320.55
8.2.150.0110.00424.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00920.63
8.2.110.0080.00420.52
8.2.100.0110.00017.71
8.2.90.0060.00319.05
8.2.80.0040.00417.97
8.2.70.0000.00917.49
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0000.00918.34
8.2.30.0040.00419.35
8.2.20.0040.00417.64
8.2.10.0040.00417.78
8.2.00.0000.00817.66
8.1.280.0040.01125.92
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00720.96
8.1.230.0090.00320.85
8.1.220.0040.00418.77
8.1.210.0040.00420.82
8.1.200.0070.00317.35
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00718.88
8.1.150.0040.00418.67
8.1.140.0050.00317.48
8.1.130.0030.00317.86
8.1.120.0000.00717.52
8.1.110.0040.00417.39
8.1.100.0030.00517.45
8.1.90.0070.00017.48
8.1.80.0040.00417.52
8.1.70.0070.00017.43
8.1.60.0040.00417.66
8.1.50.0040.00417.44
8.1.40.0040.00417.55
8.1.30.0030.00617.63
8.1.20.0080.00017.71
8.1.10.0040.00417.50
8.1.00.0040.00417.43
8.0.300.0000.00720.14
8.0.290.0000.00717.18
8.0.280.0000.00718.55
8.0.270.0030.00517.04
8.0.260.0030.00318.54
8.0.250.0030.00317.07
8.0.240.0080.00017.02
8.0.230.0000.00817.00
8.0.220.0000.00717.02
8.0.210.0000.00716.99
8.0.200.0060.00017.10
8.0.190.0060.00317.18
8.0.180.0030.00517.07
8.0.170.0050.00217.04
8.0.160.0000.00717.00
8.0.150.0070.00016.90
8.0.140.0060.00316.97
8.0.130.0030.00313.40
8.0.120.0000.00716.99
8.0.110.0040.00417.04
8.0.100.0040.00417.00
8.0.90.0040.00417.01
8.0.80.0060.01017.09
8.0.70.0000.00816.95
8.0.60.0030.00517.12
8.0.50.0050.00216.94
8.0.30.0120.00817.19
8.0.20.0080.01417.41
8.0.10.0080.00017.07
8.0.00.0080.01216.87
7.4.330.0030.00216.79
7.4.320.0000.00616.54
7.4.300.0000.00616.44
7.4.290.0040.00416.54
7.4.280.0030.00316.68
7.4.270.0040.00416.50
7.4.260.0030.00316.45
7.4.250.0030.00616.45
7.4.240.0020.00516.56
7.4.230.0000.00716.63
7.4.220.0080.00916.51
7.4.210.0050.00916.68
7.4.200.0000.00716.39
7.4.190.0050.00216.60
7.4.160.0090.00916.57
7.4.150.0120.00917.40
7.4.140.0120.00817.86
7.4.130.0120.00616.58
7.4.120.0090.01116.53
7.4.110.0070.01116.48
7.4.100.0140.00516.48
7.4.90.0100.01616.68
7.4.80.0100.01319.39
7.4.70.0060.01216.51
7.4.60.0090.00916.46
7.4.50.0040.00416.56
7.4.40.0070.00222.77
7.4.30.0150.00916.57
7.4.00.0120.00714.89
7.3.330.0000.00513.31
7.3.320.0030.00313.26
7.3.310.0050.00316.51
7.3.300.0000.00816.49
7.3.290.0100.01016.54
7.3.280.0080.01016.51
7.3.270.0040.02117.40
7.3.260.0140.00718.24
7.3.250.0110.00816.42
7.3.240.0090.01516.39
7.3.230.0120.00616.39
7.3.210.0050.01416.48
7.3.200.0070.01019.39
7.3.190.0110.01016.46
7.3.180.0070.01416.39
7.3.170.0090.00916.43
7.3.160.0130.00416.66
7.3.120.0120.00614.79
7.3.110.0100.01114.72
7.3.100.0090.01014.88
7.3.90.0100.00714.84
7.3.80.0070.00914.63
7.3.70.0060.01014.57
7.3.60.0080.00714.60
7.3.50.0110.00414.78
7.3.40.0070.00814.63
7.3.30.0120.00614.64
7.3.20.0060.01015.99
7.3.10.0110.00816.27
7.3.00.0070.00916.13
7.2.330.0100.01016.79
7.2.320.0070.01116.96
7.2.310.0120.00616.57
7.2.300.0070.01016.63
7.2.290.0120.00616.86
7.2.250.0060.01315.04
7.2.240.0140.00615.08
7.2.230.0080.01014.82
7.2.220.0090.00814.98
7.2.210.0060.01114.77
7.2.200.0070.01114.83
7.2.190.0090.00914.92
7.2.180.0070.01014.91
7.2.170.0050.01114.85
7.2.160.0130.00914.95
7.2.150.0130.00416.03
7.2.140.0090.01115.96
7.2.130.0110.00816.31
7.2.120.0120.00716.29
7.2.110.0120.00816.24
7.2.100.0110.01116.43
7.2.90.0130.00816.46
7.2.80.0110.00816.20
7.2.70.0100.01016.45
7.2.60.0070.01016.26
7.2.50.0090.01116.45
7.2.40.0110.00816.59
7.2.30.0100.00816.20
7.2.20.0100.01016.15
7.2.10.0130.00816.27
7.2.00.0070.01016.35
7.1.330.0140.00315.28
7.1.320.0070.00815.06
7.1.310.0070.00915.02
7.1.300.0080.01115.12
7.1.290.0110.00515.04
7.1.280.0080.01115.09
7.1.270.0110.00815.06
7.1.260.0080.00915.11
7.1.250.0100.00915.10
7.1.240.0090.00615.20
7.1.230.0110.00815.23
7.1.220.0080.00615.12
7.1.210.0120.00715.16
7.1.200.0100.00515.32
7.1.190.0040.01115.23
7.1.180.0100.00915.14
7.1.170.0130.00615.17
7.1.160.0070.00815.05
7.1.150.0080.00715.03
7.1.140.0090.00814.97
7.1.130.0080.00815.06
7.1.120.0090.00615.04
7.1.110.0070.00715.26
7.1.100.0060.01015.10
7.1.90.0070.00915.14
7.1.80.0130.00615.17
7.1.70.0090.00415.72
7.1.60.0100.00716.19
7.1.50.0100.00815.56
7.1.40.0040.01015.00
7.1.30.0100.00615.11
7.1.20.0070.00815.16
7.1.10.0090.00615.03
7.1.00.0050.02416.98
7.0.330.0080.00714.84
7.0.320.0040.00914.84
7.0.310.0060.01014.70
7.0.300.0100.00314.78
7.0.290.0100.00814.72
7.0.280.0040.01114.86
7.0.270.0120.00414.71
7.0.260.0060.01114.77
7.0.250.0090.00814.78
7.0.240.0090.00714.58
7.0.230.0070.00814.61
7.0.220.0050.00914.70
7.0.210.0050.01214.71
7.0.200.0060.00815.25
7.0.190.0060.01214.56
7.0.180.0100.00614.75
7.0.170.0120.00314.84
7.0.160.0050.00914.80
7.0.150.0070.00614.83
7.0.140.0060.02516.57
7.0.130.0060.00914.77
7.0.120.0090.00714.90
7.0.110.0080.00914.81
7.0.100.0100.00814.76
7.0.90.0050.01114.84
7.0.80.0090.00914.77
7.0.70.0090.00514.87
7.0.60.0090.02416.07
7.0.50.0070.01815.61
7.0.40.0100.02715.26
7.0.30.0140.01515.14
7.0.20.0120.02315.07
7.0.10.0070.02615.13
7.0.00.0090.01515.12
5.6.400.0070.00914.27
5.6.390.0060.01114.38
5.6.380.0090.00614.42
5.6.370.0070.00714.40
5.6.360.0100.00414.45
5.6.350.0110.00514.27
5.6.340.0080.00914.50
5.6.330.0110.00814.46
5.6.320.0080.00814.41
5.6.310.0050.01314.44
5.6.300.0100.00514.27
5.6.290.0080.00814.29
5.6.280.0070.02216.12
5.6.270.0060.01214.36
5.6.260.0060.01214.37
5.6.250.0080.00814.31
5.6.240.0100.00614.58
5.6.230.0050.01314.48
5.6.220.0100.00614.28
5.6.210.0080.01715.93
5.6.200.0070.02115.27
5.6.190.0080.01715.97
5.6.180.0120.01815.90
5.6.170.0160.02315.79
5.6.160.0070.01715.87
5.6.150.0090.01515.30
5.6.140.0070.02915.33
5.6.130.0100.01415.28
5.6.120.0070.02615.99
5.6.110.0090.02415.90
5.6.100.0100.01715.99
5.6.90.0110.02516.02
5.6.80.0060.02615.92
5.6.70.0080.00714.42
5.6.60.0080.00714.16
5.6.50.0060.01114.24
5.6.40.0070.00814.30
5.6.30.0090.00614.37
5.6.20.0080.00914.10
5.6.10.0080.00914.30
5.6.00.0080.01014.26
5.5.380.0090.00713.44
5.5.370.0070.00613.23
5.5.360.0060.00813.34
5.5.350.1150.01614.98
5.5.340.0100.02414.42
5.5.330.0050.01815.02
5.5.320.0210.01715.01
5.5.310.0120.01715.26
5.5.300.0090.02314.42
5.5.290.0060.02014.42
5.5.280.0070.01715.16
5.5.270.0160.01915.20
5.5.260.0100.02515.28
5.5.250.0060.01714.99
5.5.240.0080.01814.84
5.5.230.0090.00613.17
5.5.220.0050.00913.16
5.5.210.0100.00413.18
5.5.200.0080.01013.05
5.5.190.0070.00813.22
5.5.180.0080.00713.19
5.5.170.0100.00813.08
5.5.160.0090.00913.25
5.5.150.0060.00813.13
5.5.140.0060.00913.06
5.5.130.0070.00613.21
5.5.120.0060.00813.35
5.5.110.0050.01013.19
5.5.100.0070.00713.27
5.5.90.0040.01113.30
5.5.80.0040.00813.19
5.5.70.0070.00613.13
5.5.60.0100.00613.38
5.5.50.0080.00613.09
5.5.40.0070.00713.13
5.5.30.0080.00413.15
5.5.20.0100.00513.10
5.5.10.0100.00713.27
5.5.00.0060.00912.97
5.4.450.0140.01813.27
5.4.440.0140.01613.30
5.4.430.0130.02013.38
5.4.420.0160.01813.35
5.4.410.0120.02413.16
5.4.400.0110.01313.18
5.4.390.0130.01513.18
5.4.380.0150.02013.25
5.4.370.0080.01813.28
5.4.360.0100.01913.29
5.4.350.0090.01813.24
5.4.340.0140.01513.30
5.4.330.0090.00411.20
5.4.320.0140.01913.31
5.4.310.0160.01713.17
5.4.300.0130.01913.24
5.4.290.0090.01613.24
5.4.280.0110.02313.24
5.4.270.0110.01613.38
5.4.260.0140.01513.15
5.4.250.0100.01913.25
5.4.240.0140.02013.27
5.4.230.0130.02113.21
5.4.220.0140.02013.17
5.4.210.0130.01213.24
5.4.200.0130.02013.25
5.4.190.0110.02213.18
5.4.180.0120.01713.20
5.4.170.0100.02113.17
5.4.160.0110.02113.13
5.4.150.0090.01913.10
5.4.140.0130.01812.63
5.4.130.0120.02112.55
5.4.120.0120.02212.58
5.4.110.0140.01512.57
5.4.100.0120.01612.57
5.4.90.0140.02112.51
5.4.80.0110.01912.54
5.4.70.0170.01212.72
5.4.60.0110.01612.67
5.4.50.0180.00912.53
5.4.40.0140.01812.54
5.4.30.0130.01812.66
5.4.20.0150.01912.60
5.4.10.0150.02112.48
5.4.00.0130.02012.45
5.3.290.0120.01912.03
5.3.280.0100.02511.92
5.3.270.0090.02312.06
5.3.260.0120.02512.05
5.3.250.0140.02011.95
5.3.240.0100.02411.78
5.3.230.0120.01711.92
5.3.220.0110.01411.90
5.3.210.0130.02211.82
5.3.200.0090.02311.83
5.3.190.0130.01311.87
5.3.180.0120.02012.02
5.3.170.0130.01711.93
5.3.160.0120.01811.97
5.3.150.0140.01311.88
5.3.140.0100.01811.86
5.3.130.0130.01511.92
5.3.120.0120.01511.91
5.3.110.0160.01911.85
5.3.100.0140.02211.85
5.3.90.0120.01711.76
5.3.80.0140.01611.68
5.3.70.0120.01711.78
5.3.60.0090.01611.70
5.3.50.0120.01311.70
5.3.40.0070.01911.80
5.3.30.0110.01511.83
5.3.20.0070.01611.60
5.3.10.0080.01411.52
5.3.00.0110.01411.63
5.2.170.0140.01310.51
5.2.160.0070.01510.39
5.2.150.0100.01310.36
5.2.140.0080.01410.41
5.2.130.0060.01610.41
5.2.120.0130.01110.45
5.2.110.0120.01510.42
5.2.100.0080.01610.43
5.2.90.0080.01410.36
5.2.80.0140.01310.36
5.2.70.0090.01510.39
5.2.60.0110.01210.37
5.2.50.0110.01210.36
5.2.40.0060.01710.43
5.2.30.0100.01410.39
5.2.20.0130.02010.36
5.2.10.0100.01510.36
5.2.00.0080.01810.36
5.1.60.0130.01610.36
5.1.50.0070.01610.36
5.1.40.0100.01210.36
5.1.30.0120.02110.36
5.1.20.0110.02310.36
5.1.10.0110.02010.36
5.1.00.0110.02010.36
5.0.50.0090.01710.36
5.0.40.0070.01610.36
5.0.30.0110.02010.36
5.0.20.0050.02010.36
5.0.10.0060.01410.36
5.0.00.0070.02610.36
4.4.90.0060.00610.36
4.4.80.0070.00510.36
4.4.70.0040.01510.36
4.4.60.0050.01410.36
4.4.50.0040.01410.36
4.4.40.0050.01710.36
4.4.30.0050.01510.36
4.4.20.0060.01010.36
4.4.10.0080.01210.36
4.4.00.0070.01710.36
4.3.110.0070.01210.36
4.3.100.0080.01110.36
4.3.90.0070.01010.36
4.3.80.0070.01210.36
4.3.70.0040.01010.36
4.3.60.0040.01310.36
4.3.50.0050.01010.36
4.3.40.0070.01310.36
4.3.30.0050.00710.36
4.3.20.0030.00910.36
4.3.10.0030.01010.36
4.3.00.0030.01410.36

preferences:
36.48 ms | 401 KiB | 5 Q